From 6b7beb4db8ad15f1ed26c08df32d6ac1ae96ac0c Mon Sep 17 00:00:00 2001 From: Michael Osipov Date: Fri, 13 Nov 2020 19:49:35 +0100 Subject: [PATCH] [MNG-7019] Notify also at start when profile is missing --- maven-core/src/main/java/org/apache/maven/DefaultMaven.java | 2 ++ 1 file changed, 2 insertions(+) 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() );