You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Luuk van den Broek (JIRA)" <ji...@codehaus.org> on 2013/12/24 08:41:49 UTC

[jira] (MNG-5230) Command line option to exclude modules from reactor

     [ https://jira.codehaus.org/browse/MNG-5230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luuk  van den Broek updated MNG-5230:
-------------------------------------

    Attachment: MNG-5230-maven-integration-testing.patch
                MNG-5230-maven-core.patch

I have written a small patch that adds exclusion support by prefixing with '!', similar to profiles.

For example, mvn install -pl 'sub-a,!sub-b' -amd, would exclude project "sub-b" from the reactor.
                
> Command line option to exclude modules from reactor
> ---------------------------------------------------
>
>                 Key: MNG-5230
>                 URL: https://jira.codehaus.org/browse/MNG-5230
>             Project: Maven 2 & 3
>          Issue Type: New Feature
>          Components: Command Line
>    Affects Versions: 3.0.3
>            Reporter: Falko Modler
>         Attachments: MNG-5230-maven-core.patch, MNG-5230-maven-integration-testing.patch
>
>
> Every now and then I want to exclude one or more modules from a rather large reactor build.
> One reason for this can be: The respective module has tests that take long time to execute and I know that I don't need to execute them.
> Introducing yet another profile for this is not desirable for various reasons.
> So, something like an opposite to -pl would come in handy. Let's say "-el" for "exclude list".
> Example:
> {code}
> root
>   + module a
>     + module a1
>     + module a2
>   + module b
>     + module b1
>   + module c
> {code}
> Calling _mvn -el a1,c_ would build all modules execpt a1 and c.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira