Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

An internal error occurred during: "Updating Maven Project". java.lang.NullPointerException

I'm developing a Java EE web project. When I try to add a dependency, this error message appears. I use Eclipse Kepler.

An internal error occurred during: "Updating Maven Project". java.lang.NullPointerException

Could you help me? Thank you.

enter image description here

like image 335
achref05 Avatar asked Oct 22 '13 16:10

achref05


People also ask

How do I run Maven update in eclipse?

Update Maven settings in Eclipse. Right-click your project and select Maven Update Project and update your project.

How do I enable Maven nature in STS?

To enable Maven nature, right click on the project and in the context menu, select Configure → Convert To Maven Project. M2E Plugin enables the Maven nature and adds pom. xml to the project. Likewise, we can use Maven → Disable Maven Nature from the project context menu to convert a Maven project to a regular project.


3 Answers

I solved mine by deleting the .settings folder and .project file in the project and then reimporting the project.

like image 95
user2985381 Avatar answered Oct 19 '22 05:10

user2985381


For me worked the answer I found on CodeRanch, by user Maneesh Godbole:

  1. Close eclipse.
  2. Navigate to your "workspace" folder
  3. Ensure the setting on your OS to view hidden files is turned on
  4. Identify and delete the .metadata directory
  5. Restart eclipse
  6. Import project
like image 40
Eel Lee Avatar answered Oct 19 '22 05:10

Eel Lee


I've had the same problem in one of my modules.

Running "mvn eclipse:eclipse" in the console/cmd solved the problem for me.

like image 7
user1854278 Avatar answered Oct 19 '22 05:10

user1854278