我刚刚下载了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
消息。怎么会 ?
谢谢你帮助我。
无法获取依赖项的POM不被视为错误。这只是一个警告。这解释了为什么mvn clean
成功。至于您的设置没有被咨询,您是否确保已配置M2E以使用您的设置文件?