I have an Eclipse/Maven web project. I’m trying to update the facets to support JSF2. However I can’t update the dynamic web module to 3.0 (or even 2.5) because Eclipse refuses to recognize that I’m using Java 1.6. It shows Java 1.6 in the facet properties, but every time I try to change the dynamic web module to 2.5 or 3.0, it tells me I must use Java 1.6 even though that is selected. How can I solve this?
Share
I’m not sure if and how Maven plays a role here, but ignoring that, you can alternatively also change the project facets by editing the
.settings/org.eclipse.wst.common.project.facet.core.xmlfile. You can find the file when you browse in Navigator view (instead of Project Explorer). To set the dynamic web project facet version to 3.0, edit the following entry (with an unknown version, represented by...)to
If that doesn’t solve the concrete problem, then most probably some Maven plugin has forced the facet versions based on a
pom.xmlor so.