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

Martin Kanters commented on MNG-7011:
-------------------------------------

This is the method that processes the -pl flag: 
[https://github.com/apache/maven/blob/master/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java#L1476]
 .
The method below is the one that processes the -P flag: 
{{determineProfileActivation}}.

It does seem to support - as well as !. So maybe there is a bug in that method 
or somewhere else. 
I advice you to check out the source code and attach a debugger to it (using 
{{mvnDebug}}).

> consistent profile/module exclusion
> -----------------------------------
>
>                 Key: MNG-7011
>                 URL: https://issues.apache.org/jira/browse/MNG-7011
>             Project: Maven
>          Issue Type: Improvement
>    Affects Versions: 3.6.3
>            Reporter: Delany
>            Priority: Minor
>
> I can exclude a profile with -P\!beetroot or -P-beetroot
> But I can only exclude a module with -pl\!carrot



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to