码迷,mamicode.com
首页 > 系统相关 > 详细

eclipse创建maven

时间:2017-04-20 21:47:56      阅读:287      评论:0      收藏:0      [点我收藏+]

标签:maven 创建文件失败

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

标签:maven 创建文件失败

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!