qq_21491991
qq_21491991
采纳率38.5%
2016-08-15 09:18 阅读 1.3k
已采纳

myeclipse创建Maven报错

1

不知道为什么 我maven安装成功了,还是报错。求高手指教
图片说明
图片说明
图片说明
换成Myeclipse10后又出现了另外的问题

[INFO] Scanning for projects...
[INFO]

[INFO] ------------------------------------------------------------------------
[INFO] Building mavens Maven Webapp 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ mavens ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.718s
[INFO] Finished at: Sat Sep 10 15:56:55 CST 2016
[INFO] Final Memory: 4M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean (default-clean) on project mavens: 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/Administrator/.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/Administrator/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.5/plexus-utils-2.0.5.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

求解 要疯了

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

5条回答 默认 最新

  • 已采纳
    a0984 a0984 2016-08-16 03:54

    这个好像是myeclipse的版本问题。换成10以上的试试。

    点赞 评论 复制链接分享
  • hunhun1122 hunhun1122 2016-08-15 09:21

    是用的自带的还是自己配置的???

    点赞 评论 复制链接分享
  • dmlcq dmlcq 2016-08-15 09:48

    我也创建过了,没遇到过这个问题,难道是maven仓库没建好?

    点赞 评论 复制链接分享
  • lyyybz 码界一棵葱 2016-08-16 02:22

    仔细看看详细的错误日志,一般都会提醒出错的具体位置

    点赞 评论 复制链接分享
  • xiaoshiyiqie 笑释一切 2016-08-16 04:00

    看到空指针,想检查一下pom,看看是不是setting.xml的mirrors有问题呢?maven插件有问题也会报这个错吧,空指针一般就是找不到jar包或者插件

    点赞 评论 复制链接分享

相关推荐