[ 
https://issues.apache.org/jira/browse/MNG-7886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17769778#comment-17769778
 ] 

Tamas Cservenak commented on MNG-7886:
--------------------------------------

Regarding "affects version: 3.9.4" set by reported: this warning is in place 
since way way earlier than 3.9.4, the code emitting this warning is in place 
since 2014 or so.

> 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
>    Affects Versions: 3.9.4
>            Reporter: Reto Hoehener
>            Priority: Minor
>         Attachments: test.zip
>
>
> 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