Eclipse配置了MAVEN,但是MAVEN工程无法拉去依赖包

Multipleannotationsfoundatthisline:-Executiondefault-testResourcesofgoalorg.apache.ma... Multiple annotations found at this line:
- Execution default-testResources of goal org.apache.maven.plugins:maven-resources-plugin:2.6:testResources failed: Plugin
org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: The following artifacts could
not be resolved: junit:junit:jar:3.8.1, org.codehaus.plexus:plexus-utils:jar:2.0.5, org.apache.maven.shared:maven-filtering:jar:1.1,
org.sonatype.plexus:plexus-build-api:jar:0.0.4, org.codehaus.plexus:plexus-interpolation:jar:1.13: Failure to transfer junit:junit:jar:3.8.1 from

mirrors.ibiblio.org/maven2/): Connection reset (org.apache.maven.plugins:maven-resources-plugin:2.6:testResources:default-
testResources:process-test-resources)
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.5.1:testCompile
(execution: default-testCompile, phase: test-compile)
- CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.5.1 or one of its

mirrors.ibiblio.org/maven2/ was cached in the local repository, resolution will not be reattempted until the update interval of ibiblio has
elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-compiler-plugin:jar:2.5.1 from/

maven2/ was cached in the local repository, resolution will not be reattempted until the update interval of ibiblio has elapsed or updates

mirrors.ibiblio.org/maven2/): Connection reset

cached in the local repository, resolution will not be reattempted until the update interval of ibiblio has elapsed or updates are forced.

Connection reset

maven2/ was cached in the local repository, resolution will not be reattempted until the update interval of ibiblio has elapsed or updates

mirrors.ibiblio.org/maven2/): Connection reset
- Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:2.6:resources failed: Plugin
org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: The following artifacts could
not be resolved: junit:junit:jar:3.8.1, org.codehaus.plexus:plexus-utils:jar:2.0.5, org.apache.maven.shared:maven-filtering:jar:1.1,
org.sonatype.plexus:plexus-build-api:jar:0.0.4, org.codehaus.plexus:plexus-interpolation:jar:1.13: Failure to transfer junit:junit:jar:3.8.1 from

mirrors.ibiblio.org/maven2/): Connection reset (org.apache.maven.plugins:maven-resources-plugin:2.6:resources:default-
resources:process-resources)
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile
(execution: default-compile, phase: compile)
展开
 我来答
娇美妞勇闯天涯
2018-03-30 · TA获得超过7209个赞
知道小有建树答主
回答量:25
采纳率:90%
帮助的人:5267
展开全部

1、首先去看看你的镜像库是不是正确,可以在settings.xml中看看你的镜像库指向的位置,是否是可以访问的

2、如果判断出你的jar引入的位置都是无法加载的,自然就报错了

198901245631
2015-05-29 · TA获得超过3.5万个赞
知道大有可为答主
回答量:9037
采纳率:92%
帮助的人:1744万
展开全部
你的镜像库不对呢,你去settings.xml中看看你的镜像库指向的位置是否可以访问,你的jar引入的位置都无法加载,所以就报错了
本回答被提问者和网友采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 1条折叠回答
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式