No plugin found for prefix 'war' in the current project and in the plugin groups

解决办法: 
在pom里面添加 :

            <dependency>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-resources-plugin</artifactId>
            <version>2.5</version>
        </dependency>
以上是网上普遍流行的解决方法,如果修改之后依旧不行,可以尝试如下方法:
查看此目录下的文件,一般就是这里不对,之前是2.1就不行,现在文件替换为2.2的就可以了

 

 
posted @ 2018-03-19 10:52  12344321hh  阅读(940)  评论(0编辑  收藏  举报