From 827224c7c8ca60b5b438c7648c55243b631827f4 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 51d7752fbf..2e1a684e64 100644 --- a/maven-core/src/main/java/org/apache/maven/DefaultMaven.java +++ b/maven-core/src/main/java/org/apache/maven/DefaultMaven.java @@ -316,6 +316,8 @@ public class DefaultMaven validatePrerequisitesForNonMavenPluginProjects( session.getProjects() ); + validateActivatedProfiles( session.getProjects(), request.getActiveProfiles() ); + lifecycleStarter.execute( session ); validateActivatedProfiles( session.getProjects(), request.getActiveProfiles() );