Maven Connection超时错误 - Eclipse Luna

时间:2017-04-09 18:32:51

标签: maven eclipse-luna

我已经下载了Luna Lclipse。我创建了一个简单的maven项目(Skipped Archetype选择)。当我点击完成得到以下错误: enter image description here

然后我做了一个" Run As-> Maven Install"在pom文件上并得到以下错误:

[ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from/to central (http://repo.maven.apache.org/maven2): connect timed out -> [Help 1] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

从.m2目录中删除settings.xml后,我尝试了相同的步骤。我尝试下载mvn get命令并得到了同样的错误..

我是从笔记本电脑做的。我没有使用任何代理设置,我可以访问在maven build期间显示的下面的url:

[INFO] Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.6/maven-resources-plugin-2.6.pom

我得到的错误是(mvn -e get logs):

Caused by: org.apache.maven.wagon.TransferFailedException: Connect to repo.maven
.apache.org:443 [repo.maven.apache.org/151.101.24.215] failed: Connection timed
out: connect

0 个答案:

没有答案