首页 > Web开发 > 详细

maven创建web报错failure to transfer org.codehaus.plexus

时间:2015-12-17 20:36:32      阅读:309      评论:0      收藏:0      [点我收藏+]

failure to transfer org.codehaus.plexus:plexus:pom:2.0.5 from http://
 repo.maven.apache.org/maven2 was cached in the local repository, resolution will not
 be reattempted until the update interval of central has elapsed or updates are forced.
 Original error: Could not transfer artifact org.codehaus.plexus:plexus:pom:2.0.5 from/
 to central (http://repo.maven.apache.org/maven2): connection timed out to http://
 repo.maven.apache.org/maven2/org/codehaus/plexus/plexus/2.0.5/plexus-2.0.5.pom

技术分享

查看本地库该文件夹:少了jar等东西

技术分享

于是本地安装,到http://mvnrepository.com/输入plexus搜索

技术分享

技术分享

技术分享

然后在cmd中手动安装:

D:\repository\org\codehaus\plexus\plexus\2.0.5

Maven安装JAR包命令是:

mvn  install:install-file -Dfile=jar包的位置 -Dgroup=上面的groupId -DartifactId=上面的artifactId -Dversion=上面的version -Dpackaging=jar

注意:1.-Dfile=jar包的位置 需要将jar包也写上

2.jar包不能放在要库里面

技术分享

然后看D:\repository\org\codehaus\plexus\plexus\2.0.5

技术分享

 

maven创建web报错failure to transfer org.codehaus.plexus

原文:http://www.cnblogs.com/dieyaxianju/p/5055061.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!