eclipse創建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,文件夾下有好多沒有下載完的東西。所以以後如果碰到類似的問題,應該是文件殘缺。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章