David
David

Reputation: 1177

Eclipse faceted project metadata file could not be read

Every now and then, I get this error in one of my Eclipse projects:

Faceted project metadata file "/project/.settings/org.eclipse.wst.common.project.facet.core.xml" could not be read.

This is a team project using Git. The ".settings" directory does not exist at all.

I'm not sure what project "facets" in Eclipse really are. Does anyone know what this error means or how to fix it?

Upvotes: 28

Views: 24591

Answers (7)

MarkA
MarkA

Reputation: 1226

I have just had the same problem - caused in my case by attempting to revert local changes through SVN.

I was able to resolve within Eclipse by right clicking a project, select Maven, select Update Project, and Select All projects.

This avoided having to reimport any code, and work smoothly for all sub-projects.

Hope this helps!

Upvotes: 0

Uva
Uva

Reputation: 752

Right click the project in eclipse and go to Project Facets and change the java or the corresponding Project Facets to the version that it was developed.

Right click the project folder --> Properties --> Project Facets --> Change java version or tick the required module choosing the version.

Upvotes: 37

Diddi
Diddi

Reputation: 61

I resolved it this time with Right click --> Project --> Properties --> Target Runtimes --> tick the required runtime. In my case no runtime was selected.

Upvotes: 6

darkhorse21
darkhorse21

Reputation: 29

In Spring Tool Suite v3.9.0.RELEASE you can fix this error by doing the following:

Right-click on project --> Spring Tools --> Enable Spring Aspects Tooling

Upvotes: 0

Gilad Baruchian
Gilad Baruchian

Reputation: 980

not sure why it even looks for facets in my case since i don't use it, was solved for me by going to project facets, ticking one facet and then apply then removing the facet then apply again

Upvotes: 3

James-Jesse Drinkard
James-Jesse Drinkard

Reputation: 15713

To add to the other answers, I had this issue when I renamed a project, then deleted it from the eclipse workspace, then named it back and imported it back into my workspace to fix another issue I was having.

It was an Angularjs project. I had to select the javascript and Static Web Module facets and that solved the problem.

Follow the same procedure: right click on the project -- properties -- project facets.

Upvotes: 1

David
David

Reputation: 1177

I resolved it this time by re-importing the Maven project. This recreated the .settings directory and eliminated the error.

Upvotes: 18

Related Questions