How do I exclude certain modules from a Maven build using the commandline

后端 未结 6 995
不知归路
不知归路 2020-12-04 20:54

Is there a way to exclude some modules from a big reactor build, similar to -pl ?

Here are a number of ways to do it persistently:

How to exclude a module fr

6条回答
  •  一整个雨季
    2020-12-04 21:40

    I don't believe this is currently possible from the command line. There is an open feature request in maven3 for this very thing (http://jira.codehaus.org/browse/MNG-5230).

    Looks like your only option at this point is to modify the pom and create a new build profile that includes only the modules you want to build.

提交回复
热议问题