遇到 no plugin found for prefix 'tomcat 7' in the current project and in the plugin groups 的解决办法

港控/mmm° 2021-09-16 00:52 390阅读 0赞

解决方法一:

命令:tomcat7:run 注意:trim(run) run前后不存在空格

解决方法二:
找到这个settings.xml文件,进行编辑,在pluginGroups标签下加入下面的配置

SouthEast

  1. <pluginGroups>
  2. <pluginGroup>org.apache.tomcat.maven</pluginGroup>
  3. </pluginGroups>

原路径:http://tomcat.apache.org/maven-plugin-2.2/

解决方法三:在pom.xml文件中加入

  1. <pluginRepositories>
  2. <pluginRepository>
  3. <id>apache.snapshots</id>
  4. <name>Apache Snapshots</name>
  5. <url>http://repository.apache.org/content/groups/snapshots-group/</url>
  6. <releases>
  7. <enabled>false</enabled>
  8. </releases>
  9. <snapshots>
  10. <enabled>true</enabled>
  11. </snapshots>
  12. </pluginRepository>
  13. </pluginRepositories>

解决方法四:加入这个tomcat7配置

  1. <plugin>
  2. <groupId>org.apache.tomcat.maven</groupId>
  3. <artifactId>tomcat7-maven-plugin</artifactId>
  4. <version>2.2</version>
  5. </plugin>

版权声明:如果您发现了文章和代码中的错误,欢迎您在评论区中指出并给予指导,谢谢!! https://blog.csdn.net/u012661010/article/details/73734058

发表评论

表情:
评论列表 (有 0 条评论,390人围观)

还没有评论,来说两句吧...

相关阅读