[
https://issues.apache.org/jira/browse/MNG-7011?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17229161#comment-17229161
]
Piotr Zygielo commented on MNG-7011:
------------------------------------
I observe similar as reported AND similar as expected:
1. as expected - module exclusion works with exclamation point and dash with
the exception described below,
2. *if the module* to be excluded starts with the character that is also short
maven option - for example: {{-pl -saturn,}} following happens.
{code:java}
org.apache.commons.cli.MissingArgumentException: Missing argument for option: pl
at org.apache.commons.cli.Parser.processArgs(Parser.java:363)
at org.apache.commons.cli.Parser.processOption(Parser.java:395)
at org.apache.commons.cli.Parser.parse(Parser.java:210)
at org.apache.commons.cli.Parser.parse(Parser.java:88)
at org.apache.maven.cli.CLIManager.parse(CLIManager.java:162)
{code}
But it works with dash if {{-pl -:saturn}} is used (i.e. artifactId instead of
module's folder).
So I suppose {{carrot}} can't be excluded with \{-}, due to
{code}
-c,--lax-checksums Warn if checksums don't match
{code}
> 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)