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

后端 未结 6 1054
醉梦人生
醉梦人生 2021-02-12 03:49

I\'ve created a Maven project. This is the structure:

-parent
    -core
    -web

but when I try to dep

6条回答
  •  情深已故
    2021-02-12 04:14

    The reason why you get that error is because you simply have not installed the Tomcat7 plugin. Here's what you can do (I tested this on my test project and it works):

    1. Add tomcat7 plugin dependency in your pom.xml file just like you have done.
    2. Run either mvn installor mvn package to install that tomcat7 plugin
    3. Now you should be able to run mvn tomcat7:deploy

    I tested this solution with mvn tomcat7:run and it works like a charm :)

提交回复
热议问题