Failure to transfer org.codehaus.plexus:plexus-archiver:pom:1.0 from http://repo.maven.apache.org/ma

maven-war-plugin 老版本不支持的问题。
Failure to transfer org.codehaus.plexus:plexus-archiver:pom:1.0 from http://repo.maven.apache.org/ma
解决办法:在pom中ctrl+f查询war,原来是打war包的插件版本老化不支持,更新版本即可,这里也就使用了2.4版本之后 。红差消失,问题解决。
<!-- war 打包插件, 设定war包名称不带版本号 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<!-- <version>2.5.1</version> -->
<version>2.4</version>
<configuration>
<warName>${project.artifactId}</warName>
</configuration>
</plugin>

猜你喜欢

转载自blog.csdn.net/qq_30764991/article/details/80653630