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

后端 未结 6 994
不知归路
不知归路 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:36

    comma separated module name enclosed with double quotes. eg::

    mvn install -pl "!Module1, !Module2" 
    

提交回复
热议问题