Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse won't launch because `reload maven project has encountered a p‌r‌o‌b‌l‌e‌m`

When I try to start Eclipse Luna in CentOS 7, I get the following dialog box:

How can I resolve this and get eclipse to start?

like image 384
CodeMed Avatar asked Jun 26 '15 19:06

CodeMed


People also ask

How do I update POM XML in Eclipse?

Project -> Maven -> Update Configuration. RELEASE. Open a brand new project, put only (like this) <dependency><groupId>org. springframework</groupId><artifactId>spring-core</artifactId><version>3.2. 2.

What is Maven update project in Eclipse?

If you for example change important plugin settings, such as the output java version, you will find that Eclipse will ask you to update the project and afterwards the configured Java runtime in the project will have changed to reflect what your Maven pom indicates.

How do I revert Maven with E switch?

Right click your project and Run as -> Run Configurations... Add the -e (or other switches for eg. -X, etc.) in the Goals input box.

How does POM XML error resolve?

You can usually resolve these errors by updating Maven dependencies as follows: Right-click on your top-level project (not on the pom. xml file) in the Project Explorer view. From the menu, choose Maven > Update project.


3 Answers

Instead of deleting the whole .metadata folder, just delete the file .metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi" You need to make sure to quit eclipse first, then remove this file and start eclipse again.

Error will be gone.

like image 65
Amanpreet Kaur Avatar answered Sep 27 '22 22:09

Amanpreet Kaur


I removed .metada from workspace and reimported the maven projects as quick and dirty solution. You loose your Eclipse settings, you can try to play with metadata.

like image 22
Adam Hasík Avatar answered Sep 29 '22 22:09

Adam Hasík


For me it was enough just to remove the whole <persistedState /> tag in

<workspace folder>/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi
like image 38
kejn Avatar answered Sep 29 '22 22:09

kejn