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

后端 未结 2 1699
囚心锁ツ
囚心锁ツ 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:58

    Just mvn --help would have answered the first question:

     mvn -f otherPomFile.xml
    

    No. You can simple execute the phases for the current project you are in. You can give multiple phases like

    mvn clean install site site:deploy
    

提交回复
热议问题