2 qq 25024327 qq_25024327 于 2015.07.23 18:59 提问

eclipse的maven导入时报错

第一次装maven,按步骤是装好了。导入第一个maven项目就报错了,求大神不吝赐教!
以下是错误提示
Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project 'jeecg'.
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.apache.maven.plugins:maven-resources-plugin:jar:2.6 has not been downloaded from it before.
Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.apache.maven.plugins:maven-resources-plugin:jar:2.6 has not been downloaded from it before.
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.apache.maven.plugins:maven-resources-plugin:jar:2.6 has not been downloaded from it before.
Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.apache.maven.plugins:maven-resources-plugin:jar:2.6 has not been downloaded from it before.

5个回答

CSDNXIAON
CSDNXIAON   2015.07.23 19:02

eclipse 运行Maven时报错总结
----------------------同志你好,我是CSDN问答机器人小N,奉组织之命为你提供参考答案,编程尚未成功,同志仍需努力!

diaoliwei2
diaoliwei2   Rxr 2015.07.23 19:50

你maven中配置的jar都下载下来了吗? update下

Evankaka
Evankaka   Ds   Rxr 2015.07.23 19:18

此问题的解决:

1、要确认spring sts已经设置代理
2、要确认windows -> Preferences -> maven 的settings.xml文件中,设置代理。
3、C:\Users\ttt.m2\repository\org\apache\maven\plugins目录下的文件夹全部删除,重新下载。

tongyi55555
tongyi55555   2015.07.23 21:34

in offline mode
我怎么看着像是你的电脑没有联网呢?需要下载东西

cuiwei1026522829
cuiwei1026522829   Ds   Rxr 2015.07.23 22:20
Csdn user default icon
上传中...
上传图片
插入图片