- Go to project Build Path and change the Java Library version to 1.7
Go to Eclipse Preferences -> Java -> Compilre -> Change compliance level to 1.7
Right click on project -> Properties -> Project Facets
- Uncheck Dynamic Web Module and click Apply (also uncheck JavaServer Faces if you had that)
- Change the Java facet version to 1.7 and click Apply
- Add the Dyanmic Web Module v3.0, apply.
Eclipse’s facets configuration is buggy. Make sure you keep hitting Apply between checking and unchecking of facets.
Links:
Cannot change version of project facet Dynamic Web Module to 3.0?
Change version of project facet Dynamic Web Module to 2.5
转自:http://stackoverflow.com/questions/23183931/maven-java-ee-configuration/23184418#23184418