Search code examples
javaeclipsemavendependenciesfacet

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

    • 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>