Original error: Could not transfer artifact org.apache.maven.plugi
(2014-08-11 21:37:04)
标签:
mavenoriginalerrorrepo |
分类: 错误处理 |
错误场景:新建一个Maven工程
错误表现:CoreException: Could not calculate build plan:
Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one
of its dependencies could not be resolved: Failed to read artifact
descriptor for
org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2:
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): connection timed out to
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.3.2/maven-compiler-plugin-2.3.2.pom
错误原因:之前创建过一个其他类型的maven工程,下载的jar包有冲突
解决方法:清空maven
repository