specify pom.xml in mvn command and mix goals of other project

后端 未结 2 1695
囚心锁ツ
囚心锁ツ 2020-12-05 06:36

I have multiple questions.

  1. Can I specify the pom.xml in mvn command?
  2. Can I mix the goals of another project while executing mvn command on current

2条回答
  •  一整个雨季
    2020-12-05 06:45

    For the first question, see khmarbaise's answer


    If you want to build more than one maven project in one step, you must use modules.

    In a multi-module project, if you call mvn install from the top project, all sub modules are built, unless you use the advanced reactor options (e.g. mvn install -pl util -am only builds the module 'util' and it's dependencies)

提交回复
热议问题