maven 内置tomcat引发的坑

今天做项目时,想改进用maven内置tomcat,配pom如下
<build>
<finalName>spring-shiro</finalName>
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
<plugins>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<port>8085</port>
<path>/</path>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
结果报错[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
网上搜了很多,

都没有用,仔细核对发现,还是pom配错的缘故

 

多了
<pluginManagement>导致的,去掉就好
如果能帮到各位,请点个赞
posted @ 2019-08-06 21:31  java进击sgy  阅读(1470)  评论(0编辑  收藏  举报