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的就可以了
 
原文地址:https://www.cnblogs.com/12344321hh/p/8600632.html