简体   繁体   中英

Maven- Error building pom

While trying mvn clean install I got the following error:

[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. What may be the possible reason?

Follow these steps:-

  • Update maven to version 3.
  • Deleted the .m2/org/codehaus folder.
  • Build the project.

    Issue fixed!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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