Cannot change version of project facet Dynamic Web Module to 2.5

来源:互联网 发布:mac 搜狗五笔不能用 编辑:程序博客网 时间:2024/06/05 20:00
  1. Go to project Build Path and change the Java Library version to 1.7
  2. Go to Eclipse Preferences -> Java -> Compilre -> Change compliance level to 1.7

  3. Right click on project -> Properties -> Project Facets

  4. Uncheck Dynamic Web Module and click Apply (also uncheck JavaServer Faces if you had that)
  5. Change the Java facet version to 1.7 and click Apply
  6. 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

0 0
原创粉丝点击