当前位置: 代码迷 >> J2EE >> 用maven执行mvn clean compile的时候遇到这个有关问题哦
  详细解决方案

用maven执行mvn clean compile的时候遇到这个有关问题哦

热度:443   发布时间:2016-04-21 23:44:12.0
用maven执行mvn clean compile的时候遇到这个问题哦
本帖最后由 wave900309 于 2013-03-05 15:29:44 编辑
[INFO] ------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------
[INFO] Total time: 48.658s
[INFO] Finished at: Tue Mar 05 15:18:29 CST 2013
[INFO] Final Memory: 7M/107M
[INFO] ------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean (default-clean) on project hello-world: Execution default-clean
 of goal org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean failed: Plugin org.apache.maven.plugins:maven-clean-plugin:2.4.1 or one of its depend
encies could not be resolved: Could not find artifact org.codehaus.plexus:plexus-utils:jar:2.0.5 in central (http://repo.maven.apache.org/maven2) -> [
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/PluginResolutionException
H:\hello-world>




更详细的debug
[INFO] ------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean (default-clean) on project hello-world: Execution default-clean
 of goal org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean failed: Plugin org.apache.maven.plugins:maven-clean-plugin:2.4.1 or one of its depend
encies could not be resolved: Failure to find org.codehaus.plexus:plexus-utils:jar:2.0.5 in http://repo.maven.apache.org/maven2 was cached in the loca
l repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean (default-clean)
 on project hello-world: Execution default-clean of goal org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean failed: Plugin org.apache.maven.plugi
ns:maven-clean-plugin:2.4.1 or one of its dependencies could not be resolved: Failure to find org.codehaus.plexus:plexus-utils:jar:2.0.5 in http://rep
o.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or u
pdates are forced
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
  相关解决方案