Eclipse-JEE解决Cannot change version of project facet Dynamic web module to 2.4

来源:互联网 发布:sql显示男生前十 编辑:程序博客网 时间:2024/06/06 02:30

参考:http://blog.csdn.net/fuxiaohui/article/details/17496797

描述:之前用MyEclipse10创建的Maven工程,一直运行正常,但使用Eclipse-Java EE luna Service Release 2 (4.4.2)打开该工程时出现如下错误:

Cannot change version of project facet Dynamic web module to 2.4

解决方案:

将工程目录/.settings/org.eclipse.wst.common.project.facet.core.xml文件中的jst.web的version值从3.0改成2.4即可。

<?xml version="1.0" encoding="UTF-8"?><faceted-project>  <fixed facet="wst.jsdt.web"/>  <installed facet="java" version="1.7"/>  <installed facet="jst.web" version="<span style="color:#ff0000;">2.4</span>"/>  <installed facet="wst.jsdt.web" version="1.0"/>  <installed facet="me.hibernate" version="4.1"/>  <installed facet="me.spring" version="3.1"/>  <installed facet="maven" version="1.0"/></faceted-project>





0 0