Loading

"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 

 

posted @ 2017-12-29 18:39  stono  阅读(1968)  评论(0编辑  收藏  举报