Skip to content

Commit

Permalink
Update impl/maven-core/src/main/java/org/apache/maven/internal/impl/D…
Browse files Browse the repository at this point in the history
…efaultProject.java

Co-authored-by: Giovanni van der Schelde <[email protected]>
  • Loading branch information
gnodet and Giovds authored Feb 26, 2025
1 parent 525c38d commit 616b0b4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,11 @@ public List<Profile> getProfiles() {
@Override
@Nonnull
public List<Profile> getAllProfiles() {
List<org.apache.maven.model.Profile> activeProfiles = new ArrayList<>();
List<org.apache.maven.model.Profile> profiles = new ArrayList<>();
for (MavenProject project = this.project; project != null; project = project.getParent()) {
activeProfiles.addAll(project.getModel().getProfiles());
profiles.addAll(project.getModel().getProfiles());
}
return activeProfiles.stream()
return profiles.stream()
.map(org.apache.maven.model.Profile::getDelegate)
.toList();
}
Expand Down

0 comments on commit 616b0b4

Please sign in to comment.