diff --git a/maven-core/src/main/java/org/apache/maven/DefaultMaven.java b/maven-core/src/main/java/org/apache/maven/DefaultMaven.java index 12b8f4ac7b..7447b8ca56 100644 --- a/maven-core/src/main/java/org/apache/maven/DefaultMaven.java +++ b/maven-core/src/main/java/org/apache/maven/DefaultMaven.java @@ -291,6 +291,8 @@ public class DefaultMaven validatePrerequisitesForNonMavenPluginProjects( session.getProjects() ); + validateActivatedProfiles( session.getProjects(), request.getActiveProfiles() ); + lifecycleStarter.execute( session ); validateActivatedProfiles( session.getProjects(), request.getActiveProfiles() );