"pom.xml" could not be activated because it does not exist.


"pom.xml" could not be activated because it does not exist.

在sts中使用maven build,輸入package然后出現該錯誤的解決辦法;

學習了:

https://stackoverflow.com/questions/28192761/spring-maven-clean-error-the-requested-profile-pom-xml-could-not-be-activate 中的第三個回答

引導到:https://stackoverflow.com/questions/25232541/warning-the-requested-profile-pom-xml-could-not-be-activated-because-it-does-n/29756741#29756741

因為本機的jdk是1.8,所以還真不是jdk問題導致的;

1,run-run configuration ,彈出的配置框中,刪除Profiles中的pom.xml,在goals中輸入package;然后就可以成功的maven package了;

2,在cmd命令環境下,可以直接輸入mvn clean package,是可以正常運行的;

學習:http://blog.csdn.net/qq_32143169/article/details/75641917, 這個沒有說刪除兩個字。

學習:http://blog.csdn.net/strophe/article/details/78437092 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM