【解决】[WARNING] The requested profile "pom.xml" could not be activated because it does not exist导致无法打包

问题:[WARNING] The requested profile "pom.xml" could not be activated because it does not exist

说明:本人使用STS(Spring Tool Suits)

解决:

Step1:clean你的工程:顶部菜单【Project】-->【Clean】  

Step2:选中工程,右键菜单【Maven】-->【Update Project】,然后等等等等

Step3:选中工程,右键菜单【Run As】-->【Maven build】(选第二个maven build),【Goals】填:package

或者,忽略test的:【Goals】填:package -Dmaven.test.skip=true

OK!

可以打包了!

(什么?还有Warning? Who cares !)

你可能感兴趣的:(Spring,Cloud)