A股上市公司传智教育(股票代码 003032)旗下技术交流社区北京昌平校区

 找回密码
 加入黑马

QQ登录

只需一步,快速开始

Eclipse创建Maven工程,pom.xml报错
办法1:使用Maven clean 然后Maven install报错:
[ERROR] Failed to execute goal on project opp: Could not resolve dependencies for project com.unicom.si:opp:war:1.0.0: Failed to collect dependencies for [org.springframework:spring-core:jar:4.0.8.RELEASE (compile), org.springframework:spring-beans:jar:4.0.8.RELEASE (compile), org.springframework:spring-context:jar:4.0.8.RELEASE (compile), org.springframework:spring-context-support:jar:4.0.8.RELEASE (compile), org.springframework:spring-aop:jar:4.0.8.RELEASE (compile), org.springframework:spring-tx:jar:4.0.8.RELEASE (compile), org.springframework:spring-orm:jar:4.0.8.RELEASE (compile), org.springframework:spring-jdbc:jar:4.0.8.RELEASE (compile), org.hibernate:hibernate-validator:jar:5.1.1.Final (compile), org.aspectj:aspectjrt:jar:1.7.4 (compile), org.aspectj:aspectjweaver:jar:1.7.4 (compile), cglib:cglib:jar:3.1 (compile), org.mybatis:mybatis:jar:3.2.8 (compile), org.mybatis:mybatis-spring:jar:1.2.2 (compile), com.alibaba:druid:jar:1.0.17 (compile), mysql:mysql-connector-java:jar:5.1.30 (runtime), com.oracle:ojdbc14:jar:10.2.0.4.0 (compile), net.sourceforge.jtds:jtds:jar:1.3.1 (runtime), org.springframework:spring-web:jar:4.0.8.RELEASE (compile), org.springframework:spring-webmvc:jar:4.0.8.RELEASE (compile), org.springframework:spring-oxm:jar:4.0.8.RELEASE (compile), opensymphony:sitemesh:jar:2.4.2 (compile), taglibs:standard:jar:1.1.2 (compile), javax.servlet:jstl:jar:1.2 (compile), javax.servlet:servlet-api:jar:2.5 (provided), javax.servlet.jsp:jsp-api:jar:2.1 (provided), net.sf.ehcache:ehcache-core:jar:2.6.9 (compile), net.sf.ehcache:ehcache-web:jar:2.0.4 (compile), redis.clients:jedis:jar:2.5.1 (compile), org.apache.shiro:shiro-core:jar:1.2.3 (compile), org.apache.shiro:shiro-spring:jar:1.2.3 (compile), org.apache.shiro:shiro-cas:jar:1.2.3 (compile), org.apache.shiro:shiro-web:jar:1.2.3 (compile), org.apache.shiro:shiro-ehcache:jar:1.2.3 (compile), org.activiti:activiti-engine:jar:5.15.1 (compile), org.activiti:activiti-spring:jar:5.15.1 (compile), org.activiti:activiti-explorer:jar:5.15.1 (compile), org.activiti:activiti-modeler:jar:5.15.1 (compile), org.activiti:activiti-diagram-rest:jar:5.15.1 (compile), org.slf4j:slf4j-api:jar:1.7.7 (compile), org.slf4j:slf4j-log4j12:jar:1.7.7 (compile), org.slf4j:jcl-over-slf4j:jar:1.7.7 (compile), org.slf4j:jul-to-slf4j:jar:1.7.7 (compile), org.apache.commons:commons-lang3:jar:3.3.2 (compile), commons-io:commons-io:jar:2.4 (compile), commons-codec:commons-codec:jar:1.9 (compile), commons-fileupload:commons-fileupload:jar:1.3.1 (compile), commons-beanutils:commons-beanutils:jar:1.9.1 (compile), com.google.guava:guava:jar:17.0 (compile), com.fasterxml.jackson.core:jackson-core:jar:2.2.3 (compile), com.fasterxml.jackson.core:jackson-databind:jar:2.2.3 (compile), com.fasterxml.jackson.core:jackson-annotations:jar:2.2.3 (compile), com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.2.3 (compile), com.thoughtworks.xstream:xstream:jar:1.4.7 (compile), net.sf.dozer:dozer:jar:5.5.1 (compile), org.freemarker:freemarker:jar:2.3.20 (compile), javax.mail:mail:jar:1.4.7 (compile), javax.activation:activation:jar:1.1.1 (compile), org.apache.poi:poi:jar:3.9 (compile), org.apache.poi:poi-ooxml:jar:3.9 (compile), org.apache.poi:poi-ooxml-schemas:jar:3.9 (compile), com.drewnoakes:metadata-extractor:jar:2.6.2 (compile), com.google.zxing:core:jar:2.2 (compile), com.google.zxing:javase:jar:2.2 (compile), org.wltea:analyzer:jar:2012_u6 (compile), net.coobird:thumbnailator:jar:0.4.2 (compile), com.ckfinder:apache-ant-zip:jar:2.3 (compile), com.ckfinder:ckfinder:jar:2.3 (compile), com.ckfinder:ckfinderplugin-fileeditor:jar:2.3 (compile), com.ckfinder:ckfinderplugin-imageresize:jar:2.3 (compile), junit:junit:jar:4.11 (compile), org.springframework:spring-test:jar:4.0.8.RELEASE (compile), bitwalker:UserAgentUtils:jar:1.13 (compile), commons-beanutils:commons-beanutils-core:jar:1.8.3 (compile), com.googlecode.json-simple:json-simple:jar:1.1.1 (compile), org.quartz-scheduler:quartz:jar:1.8.6 (compile), org.apache.httpcomponents:httpclient:jar:4.3.6 (compile), org.jsoup:jsoup:jar:1.8.2 (compile), net.sourceforge.htmlunit:htmlunit:jar:2.14 (compile), net.sourceforge.htmlunit:htmlunit-core-js:jar:2.14 (compile), xalan:xalan:jar:2.7.1 (compile), net.sourceforge.nekohtml:nekohtml:jar:1.9.20 (compile), net.sourceforge.cssparser:cssparser:jar:0.9.13 (compile), org.apache.httpcomponents:httpmime:jar:4.3.2 (compile), cn.edu.hfut.dmic.webcollector:WebCollector:jar:2.09 (compile), org.seleniumhq.selenium:selenium-java:jar:2.31.0 (compile), com.lowagie:itext:jar:2.0.8 (compile), org.xhtmlrenderer:core-renderer:jar:R8 (compile)]: Failed to read artifact descriptor for org.restlet.jee:org.restlet:jar:2.1.4: Could not transfer artifact org.restlet.jee:org.restlet:pom:2.1.4 from/to oschina-repos (http://maven.oschina.net/content/groups/public): Failed to transfer http://maven.oschina.net/content/groups/public/org/restlet/jee/org.restlet/2.1.4/org.restlet-2.1.4.pom. Error code 502, Bad Gateway -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
办法2:maven update project 后没有效果。
请问谁可以解答

1 个回复

正序浏览
谁可以解决,[ERROR] Failed to execute goal on project opp: Could not resolve dependencies for project com.unicom.si:opp:war:1.0.0: Failed to collect dependencies for [org.springframework:spring-core:jar:4.0.8.RELEASE (compile),
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 加入黑马