Reto Hoehener created MNG-7886:
----------------------------------

             Summary: Do not warn (or improve warning message) if a profile 
exists only in the reactor pom, but not in the selected module.
                 Key: MNG-7886
                 URL: https://issues.apache.org/jira/browse/MNG-7886
             Project: Maven
          Issue Type: Improvement
            Reporter: Reto Hoehener


No warning:
{code:java}
mvn -f aggregator/pom.xml -P test-profile validate{code}
Warning: 
{code:java}
mvn -f aggregator/pom.xml -P test-profile -pl :module-1 validate
[INFO] Scanning for projects...
[WARNING] The requested profile "test-profile" could not be activated because 
it does not exist. {code}
The build is successful, and the aggregator profile is activated correctly.

*Improvement suggestion:*

Do not warn at all, or:
{code:java}
[WARNING] The requested profile "test-profile" could only be activated in the 
reactor pom, but does not exist in the selected module "module-1" (this can be 
intended).{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to