Maven执行clean时候的问题

spritmoonmoon 2014-12-04 03:47:41
这是错误信息
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building beijing-crs 14.12.04
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.apache.maven.plugins:maven-clean-plugin:jar:2.4.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ beijing-crs ---
[WARNING] The POM for org.apache.maven.plugins:maven-clean-plugin:jar:2.4.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.186s
[INFO] Finished at: Thu Dec 04 15:43:19 CST 2014
[INFO] Final Memory: 2M/121M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean (default-clean) on project beijing-crs: Execution default-clean of goal org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean failed: A required class was missing while executing org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean: org/codehaus/plexus/util/Os
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.apache.maven.plugins:maven-clean-plugin:2.4.1
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/yu/.m2/repository/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.jar
[ERROR] urls[1] = file:/C:/Users/yu/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------: org.codehaus.plexus.util.Os
[ERROR] -> [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/PluginContainerException


...全文
14515 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
howsun_zh 2016-03-26
  • 打赏
  • 举报
回复
这个问题推荐大家看一篇文章:http://www.lizi.pw/archives/28
rainbow3548 2015-12-10
  • 打赏
  • 举报
回复
四楼的方法果然很好用
howsun_zh 2014-12-05
  • 打赏
  • 举报
回复
POM里有没有覆盖maven-clean-plugin插件?通常这种默认插件不需要覆盖指定。 如果没有,先自下而上,将依赖工程先clean一遍,clean的同时要使用Eclipse clean一下(menu->project->clean,同时勾上自动编译)。然后再clean这个出错的工程。
  • 打赏
  • 举报
回复
可以项目clean一下,如果还不行,那就将项目转成非maven项目,然后再转回来试试
  • 打赏
  • 举报
回复
可以项目clean一下,如果还不行,那就将项目转成非maven项目,然后再转回来试试
  • 打赏
  • 举报
回复
可以项目clean一下,如果还不行,那就将项目转成非maven项目,然后再转回来试试

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧