无法从中心传输工件maven-compiler-plugin

问题描述 投票:1回答:1

我刚刚下载了Eclipse Indigo和m2e插件,这个错误出现在我的项目的pom.xml中:

ArtifactResolutionException: 
  Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.3.2 
  from http://repo1.maven.org/maven2 was cached in the local repository, 
  resolution will not be reattempted until the update interval of central has elapsed or updates are forced. 
Original error: Could not transfer artifact org.apache.maven.plugins:
  maven-compiler-plugin:pom:2.3.2 from/to central (http://repo1.maven.org/maven2): 
  null to http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.3.2/maven-compiler-plugin-2.3.2.pom

我发现null的原始错误信息很奇怪。我检查了最后一个网址,那里确实有一个pom文件。

我已经尝试在我的settings.xml中指定一个镜子,但显然它看起来似乎并不在那里。

此外,当我输入mvn clean时,我收到一条BUILD SUCCESSFUL消息。怎么会 ?

谢谢你帮助我。

maven eclipse-indigo
1个回答
0
投票

无法获取依赖项的POM不被视为错误。这只是一个警告。这解释了为什么mvn clean成功。至于您的设置没有被咨询,您是否确保已配置M2E以使用您的设置文件?

© www.soinside.com 2019 - 2024. All rights reserved.