Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 313
Chinovski Avatar asked Jul 05 '16 14:07

Chinovski


People also ask

What is project facet in Eclipse?

Faceted Project Framework is a mature component of Eclipse Web Tools Platform (WTP) that facilitates treating Eclipse projects as composed of units of functionality (called facets) that can be easily added or removed by users.

How to find project Facets in Eclipse?

In the Project Explorer view of the Java™ EE perspective, right-click the project and then select Properties. Select the Project Facets page in the in the Properties window. This page lists the facets in the project and their versions.


2 Answers

  • 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>
like image 154
ℛɑƒæĿᴿᴹᴿ Avatar answered Sep 18 '22 21:09

ℛɑƒæĿᴿᴹᴿ


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.

like image 23
Laur Alex Avatar answered Sep 19 '22 21:09

Laur Alex