简体   繁体   English

Maven-构建pom时出错

[英]Maven- Error building pom

While trying mvn clean install I got the following error: 在尝试mvn clean install ,出现以下错误:

[INFO] Error building POM (may not be this project's POM).


Project ID: org.codehaus.plexus:plexus-components:pom:1.1.15

Reason: Cannot find parent: org.codehaus.plexus:plexus for project: org.codehaus.plexus:plexus-components:pom:1.1.15 for project org.codehaus.plexus:plexus-components:pom:1.1.15

The same works when I user mvn clean install as root user. 当我以root用户身份使用mvn clean install时,其工作原理相同。 What may be the possible reason? 可能是什么原因?

Follow these steps:- 跟着这些步骤:-

  • Update maven to version 3. 将Maven更新到版本3。
  • Deleted the .m2/org/codehaus folder. 删除.m2 / org / codehaus文件夹。
  • Build the project. 生成项目。

    Issue fixed! 问题已解决!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM