0
如果我運行 mvn clean install
爲什麼maven會在安裝後執行清理?'mvn clean install':'install'後爲什麼'clean'會運行?
我之所以這樣問是因爲我想抓住從工作區中產生的EAR,而不是詹金斯後回購的位置已經呼籲行家
這裏的控制檯輸出部分:
[INFO] --- maven-install-plugin:2.4:install (default-install) @ myProject.EAR ---
[INFO] Installing target/myProject.EAR-1.0.0.ear to /var/lib/jenkins/.m2/repository/uk/co/mycompany/myProject.EAR/1.0.0/myProject.EAR-1.0.0.ear
[INFO] Installing /var/lib/jenkins/jobs/MP/workspace/myProject.EAR/pom.xml to /var/lib/jenkins/.m2/repository/uk/co/mycompany/myProject.EAR/1.0.0/myProject.EAR-1.0.0.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building myProject 20.5.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ myProject ---
[INFO] Deleting /var/lib/jenkins/jobs/MP/workspace/myProject/target
[INFO]
啊,是的。這解釋了它。我把它看作一個構建,但有多個模塊。在這種情況下,父母,EAR和4-5 WARs。 –