maven使用多个下载源

使用maven的mvn package时出现下面错误

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project clothing: Compilation failure
[ERROR] 
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project comment: Unable to generate classpath: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException: Missing:
[ERROR] ----------
[ERROR] 1) org.apache.maven.surefire:surefire-junit3:jar:2.12.4
[ERROR] 
[ERROR] Try downloading the file manually from the project website.
[ERROR] 
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=org.apache.maven.surefire -DartifactId=surefire-junit3 -Dversion=2.12.4 -Dpackaging=jar -Dfile=/path/to/file
[ERROR] 
[ERROR] Alternatively, if you host your own repository you can deploy the file there:
[ERROR] mvn deploy:deploy-file -DgroupId=org.apache.maven.surefire -DartifactId=surefire-junit3 -Dversion=2.12.4 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR] 
[ERROR] Path to dependency:
[ERROR] 1) dummy:dummy:jar:1.0
[ERROR] 2) org.apache.maven.surefire:surefire-junit3:jar:2.12.4
[ERROR] 
[ERROR] ----------
[ERROR] 1 required artifact is missing.
[ERROR] 
[ERROR] for artifact:
[ERROR] dummy:dummy:jar:1.0
[ERROR] 
[ERROR] from the specified remote repositories:
[ERROR] nexus_group (http://192.168.10.88:8081/nexus/content/groups/public/, releases=true, snapshots=false)
[ERROR] -> [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/MojoExecutionException

修改settings.xml文件中内容

<mirror>  
    <id>public</id>  
    <mirrorOf>*(改为public)</mirrorOf>  
    <name>public</name>  
    <url>http://localhost:8081/........</url>  
</mirror> 
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
ant-1.6.2.jar asm-analysis-3.2.jar asm-commons-3.2.jar asm-tree-3.2.jar asm-util-3.2.jar aspectjweaver-1.7.4.jar avalon-framework-4.1.3.jar bsf-api-3.1.jar cache-api-0.4.jar cglib-nodep-2.2.jar citrus-webx-all-3.0.8.jar classworlds-1.1-alpha-2.jar classworlds-1.1.jar commons-beanutils.jar commons-cli-1.0.jar commons-collections-3.2.jar commons-digester-1.6.jar commons-httpclient-2.0.2.jar commons-io-1.3.2.jar commons-io-2.1.jar commons-lang-2.5.jar commons-logging-1.1.jar commons-validator-1.2.0.jar curator-framework-1.1.16.jar cxf-rt-frontend-simple-2.6.1.jar cxf-rt-transports-http-2.6.1.jar doxia-core-1.0-alpha-11.jar doxia-core-1.0.jar doxia-decoration-model-1.0-alpha-11.jar doxia-decoration-model-1.0.jar doxia-module-apt-1.0-alpha-11.jar doxia-module-apt-1.0.jar doxia-module-fml-1.0-alpha-11.jar doxia-module-fml-1.0.jar doxia-module-xdoc-1.0-alpha-11.jar doxia-module-xdoc-1.0.jar doxia-module-xhtml-1.0-alpha-11.jar doxia-module-xhtml-1.0.jar doxia-sink-api-1.0-alpha-10.jar doxia-sink-api-1.0-alpha-11.jar doxia-sink-api-1.0-alpha-4.jar doxia-sink-api-1.0.jar doxia-site-renderer-1.0-alpha-11.jar doxia-site-renderer-1.0.jar dummy.jar.zip dummy1.0.jar easymock-1.2_Java1.3.jar easymock-3.0.jar easymockclassextension-3.0.jar fastjson-1.1.31.jar fastjson-1.2.28.jar fastjson-1.2.31.jar file-management-1.2.1.jar fst-1.55.jar grizzly-core-2.1.4.jar hessian-lite-3.2.1-fixed-2.jar hibernate-validator-4.2.0.Final.jar hsqldb-1.7.1.jar htmlunit-1.9.jar httpclient-4.0.1.jar httpclient-4.1.2.jar httpclient-4.2.5.jar httpclient-4.4.jar httpcore-4.0.1.jar httpcore-4.1.2.jar jackson-core-2.8.8.jar jackson-core-asl-1.9.13.jar jackson-databind-2.3.3.jar jackson-datatype-joda-2.4.0.jar jackson-mapper-asl-1.9.12.jar javassist-3.20.0-GA.jar javax.ws.rs-api-2.0.1.jar jaxen-core-1.0-FCS.jar jaxen-jdom-1.0-FCS.jar jdependency-0.6.jar jdom-1.1.jar jedis-2.1.0.jar jetty-4.2.10.jar jetty-4.2.12.jar jfreechart-1.0.13.jar jmockit-0.999.8.jar jsch-0.1.23.jar jsch-0.1.27.jar jsr305-2.0.1.jar jtid
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值