2016-01-20 210 views
1

请参考下面我不能对日食MAVEN依赖失败

  • 1)下载日食
  • 2)下载Maven仓库
  • 3)设置环境变量M2_HOME,MAVEN_HOME,JAVA_HOME运行Maven项目
  • 4)SET路径行家bin文件夹

mvn -version工作正常

在以下情况下,它无法更新行家,而从CMD运行,请帮助

C:\Users\sridhar.m> mvn eclipse:eclipse 
[INFO] Scanning for projects... 
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven 
-clean-plugin/2.5/maven-clean-plugin-2.5.pom 
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:mave 
n-clean-plugin:2.5: Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or on 
e of its dependencies could not be resolved: Failed to read artifact descriptor 
for org.apache.maven.plugins:maven-clean-plugin:jar:2.5 
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven 
-install-plugin/2.4/maven-install-plugin-2.4.pom 
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:mave 
n-install-plugin:2.4: Plugin org.apache.maven.plugins:maven-install-plugin:2.4 o 
r one of its dependencies could not be resolved: Failed to read artifact descrip 
tor for org.apache.maven.plugins:maven-install-plugin:jar:2.4 
+0

你的格式是远远易于阅读,请检查,如果我申请重新格式化是你心目中 –

+0

这听起来像一个代理问题,有什么一致的。 – Tunaki

+1

我建议直接使用Maven仓库管理等的Nexus,而不是访问Maven的中央(或其他存储库)。 – Puce

回答

0

你复制你的settings.xml您.m2目录文件夹(你M2_HOME)?

也有你正确设置你的代理(在settings.xml),这样你的Maven可以出去到互联网?

希望这会有所帮助。

0

可能是你没有在Eclipse中配置 你的Maven的安装您可以选择在Eclispe的去 - >窗口 - >首选项 - > Maven和选择Installations和添加库的Maven的路径和嵌入式文件夹。

如果它不工作,你也许有代理的问题,所以必须对其进行配置文件setting.xmlPath to Maven\conf\setting.xml

GL。