'How to turn off project facets on eclipse?
I was trying to resolve a problem in my eclipse so I clicked on :
Propreties -> Project Facets -> Click on the link
Now I have a new view of Project Facets
and a lot of errors and I don't know how to come back to the previous step and cancel this thing.
Do you have any idea how to do it?
Thank you in advance.
Solution 1:[1]
- Go to your
/workspace/project/
- Edit
.project
file - Make a backup of this file as a precaution
Search <nature>
tag and remove all references, except this one:
<nature>org.eclipse.m2e.core.maven2Nature</nature>
The above line says you are using a maven project.
Remove other lines like:
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
Solution 2:[2]
Here is how to turn off Eclipse facets which gave me a few problems with the Spring related to drivers, something like "cannot establish a connection".
Right click project -> Project Natures -> search for 'Eclipse faceted Project Properties' -> Remove -> Apply and close.
This is related: also when you click Update Maven project and it regains the warning or problems which you've fixed before, then I think it is because of incompatibilities between the versions of Dynamic Web, Java and so on, with versions from maven dependency.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | |
Solution 2 | Kirby |