[WARNING] The requested profile "pom.xml" could not be activated because it does not exist.解决方法

版权声明:本文为博主原创文章,未经博主允许不得转载。https://blog.csdn.net/zhangleiyes123/article/details/82665702

(1).之前项目打包都OK,不知道咋回事,突然出现如下图的问题:

[WARNING] The requested profile

(2).上网查找了好多,一直没有解决,最后把本地maven库删除,重新运行了一遍,变成BUILD  SUCCESS,但是警告还是

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

(3).最后走如下操作,警告会消失

右击项目----->properties------>搜索maven------>删除pom.xml,Apply即可,如下图

[WARNING] The requested profile

(4).最后,重新打包,就好了,如下图

[WARNING] The requested profile

 

你可能感兴趣的:(java,进阶)