问题:在构建Maven项目的时候,出现了No plugin found for prefix 'tomcat7' in the current project的错误。
分析:在Maven的Pom文件里面没有添加tomcat7的插件。
解决方案:
<build>
<plugins>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
</plugin>
</plugins>
</build>