简体   繁体   中英

Maven import project errors

When I import a maven project, I get a window titled "Multiple problems have occured".

Two problems:

  • Building workspace

Errors occurred during the build. Errors running builder 'Maven Project Builder' on project '(project name)'.

  • Importing Maven projects

An internal error occurred during: "Importing Maven projects". java.lang.NullPointerException java.lang.NullPointerException

I've searched a bit for these errors and some people are saying it goes away by deleting ".settings" and ".project" files but this is not working for me.

What could cause these errors and is there a fix?

Solution depends on the ide you are using. If you are using IntelliJ Idea to import the maven project just delete the existing idea related file and import the project from the beginning. If you are using Eclipse ide, this error may cause due to missing of settings.xml file in .m2 (local maven repo) folder.

  1. In Eclipse navigate to Window -> Preferences -> Maven -> User Settings -> Browse to your settings.xml and click apply.
  2. Then do maven Update Project.

Reference

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