Failed to read artifact descriptor for org.apache.ws.commons:XmlSchema:jar:1.1:

 报错:

[ERROR] Failed to execute goal on project synchrodata-web: Could not resolve dependencies    for project suqiu:synchrodata-web:war:1.0: Failed to collect dependencies for    [junit:junit:jar:3.8.1 (test), suqiu:synchrodata-client:jar:1.0 (compile),    org.springframework:spring-web:jar:2.5.6 (compile), org.springframework:spring-   core:jar:2.5.6 (compile), org.slf4j:slf4j-log4j12:jar:1.6.1 (compile), org.slf4j:slf4j-   api:jar:1.6.1 (compile), com.oracle:classes12:jar:10.2.0.2.0 (compile),    org.codehaus.xfire:xfire-aegis:jar:1.2.6 (compile), org.codehaus.xfire:xfire-   spring:jar:1.2.6 (compile)]: Failed to read artifact descriptor for    org.apache.ws.commons:XmlSchema:jar:1.1: Could not transfer artifact    org.apache.ws.commons:XmlSchema:pom:1.1 from/to codehaus (http://dist.codehaus.org/): No    connector available to access repository codehaus (http://dist.codehaus.org/) of type legacy    using the available factories WagonRepositoryConnectorFactory -> [Help 1] 方法一: 下载XmlSchema-1.1.jar包, http://ishare.iask.sina.com.cn/download/explain.php?fileid=34464103   执行命令 mvn install:install-file -Dfile=/root/XmlSchema-1.1.jar  -DgroupId=org.apache.ws.commons  –   DartifactId=XmlSchema -Dversion=1.1  -Dpackaging=jar -DgeneratePom=true   方法二 把XmlSchema-1.1.jar上传到maven私服上

本文转自 holy2009 51CTO博客,原文链接:http://blog.51cto.com/holy2010/1108459

点赞