首页 > 系统服务 > 详细

eclipse创建maven

时间:2017-04-20 21:48:27      阅读:264      评论:0      收藏:0      [点我收藏+]

maven 创建文件失败

(1)问题提示:Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failure to transfer org.apache.maven.plugins:maven-resources-plugin:jar:2.6 from https://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.apache.maven.plugins:maven-resources-plugin:jar:2.6 from/to central (https://repo.maven.apache.org/maven2): connect timed out

Plugin org.apache.maven.plugins:maven-re

解决方法:因为对应的文件夹下下载的文件残缺,将该文件夹下的文件删除,重新project->build all.重新下载一下。

(2)问题提示:Could not calculate build plan: Plugin org.apache.maven.plugins:maven-jar-plugin:2.4 or one of its dependencies could not be resolved: Failure to transfer org.apache.maven.plugins:maven-jar-plugin:jar:2.4 from https://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.apache.maven.plugins:maven-jar-plugin:jar:2.4 from/to central (https://repo.maven.apache.org/maven2): connect timed out

Plugin org.apache.maven.plugins:maven-jar-plugin:2.4 or one of its dependencies could not be resolved: Failure to transfer org.apache.maven.plugins:maven-jar-plugin:jar:2.4 from https://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.apache.maven.plugins:maven-jar-plugin:jar:2.4 from/to central (https://repo.maven.apache.org/maven2): connect timed out

解决方法:因为对应的文件夹下下载的文件残缺,将该文件夹下的文件删除,重新project->build all.重新下载一下。




可能是网速的问题,在\.m2\repository\org\apache\maven\plugins,文件夹下有好多没有下载完的东西。所以以后如果碰到类似的问题,应该是文件残缺。


eclipse创建maven

原文:http://12844768.blog.51cto.com/12834768/1917886

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