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

问题:在构建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>

猜你喜欢

转载自blog.csdn.net/leoBETT/article/details/82859420