How to turn off project facets on eclipse?

泪湿孤枕 提交于 2020-02-22 04:18:46

问题


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.


回答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>


来源:https://stackoverflow.com/questions/38206320/how-to-turn-off-project-facets-on-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!