JHarnach
JHarnach

Reputation: 4034

Disable Eclipse JSF facet / nature

Eclipse insists on enabling the JSF facet in my project. I can disable it easily enough, but when I run a Maven -> Update Project through Eclipse, the facet (and the associated WEB-INF/faces-config.xml file) returns. I'm not referencing JSF in my POM, and there are no JSF jars in my classpath so...

Why is Eclipse adding the JSF Facet?

Upvotes: 2

Views: 2912

Answers (1)

Jens Piegsa
Jens Piegsa

Reputation: 7485

This may be caused by (a) the Maven plugin or (b) JBoss Tools plugins.

For (a) try to:

  1. uncheck "JSF Configurator" under

    Preferences > Maven > Java EE Integration

  2. remove the following line from your .project file:

     <nature>org.jboss.tools.jsf.jsfnature</nature>
    
  3. update the Maven project with Alt+F5 and

  4. check the .project file again.

Upvotes: 6

Related Questions