问题描述
- 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.
解决方案
解决方案二:
此问题的解决:
1、要确认spring sts已经设置代理
2、要确认windows -> Preferences -> maven 的settings.xml文件中,设置代理。
3、C:Users tt.m2
epositoryorgapachemavenplugins目录下的文件夹全部删除,重新下载。
解决方案三:
你maven中配置的jar都下载下来了吗? update下
解决方案四:
in offline mode
我怎么看着像是你的电脑没有联网呢?需要下载东西
解决方案五:
http://www.iteye.com/problems/96117
时间: 2024-12-11 01:50:48