Maven首行报错1.1.7plexus-components:pom:1.1.20 from http://maven.oschina.net/content/groups/public/ w

Failure to transfer org.codehaus.plexus:plexus-components:pom:1.1.20 from http://maven.oschina.net/content/groups/public/ was cached in the local repository, resolution 
 will not be reattempted until the update interval of CN has elapsed or updates are forced. Original error: Could not transfer artifact org.codehaus.plexus:plexus-
 components:pom:1.1.20 from/to CN (http://maven.oschina.net/content/groups/public/): java.net.ConnectException: connection timed out to http://maven.oschina.net/
 content/groups/public/org/codehaus/plexus/plexus-components/1.1.20/plexus-components-1.1.20.pom
解决方案  在plugins 加入如下内容
 
 
 <build> 
 
 <plugins>

  <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>

 </plugins>
  </build>

猜你喜欢

转载自blog.csdn.net/bestxianfeng163/article/details/80271664
今日推荐