
error:Description Resource Path Location Type Cannot change version of project facet Dynamic Web Module to 3.0.
错误: Description Resource Path Location Type Cannot change version of project facet Dynamic Web Module to 3.0. 以下是在GG搜索到的。http://*.com/questions/75786/eclipse-how-can-i-change-a-project-facet-from-tomcat-6-to-tomcat-5-5 首先在硬盘下找到 \项目名\.setting\文件夹下的 org.eclipse.wst.common.project.facet.core.xml xml文件。 <?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<fixed facet="wst.jsdt.web"/>
<installed facet="jst.web" version="2.3"/>
<installed facet="wst.jsdt.web" version="1.0"/>
<installed facet="java" version="1.7"/>
</faceted-project> 将jst.web,的version改成3.0. 然后在eclipse里右键该工程--maven--updateProject即可。。
为什么Maven会更改Eclipse JDK设置
解决项目是maven默认使用的jdk1.5无法修改的问题
三、解决方案 在pom.xml文件中增加如下配置: <build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>