Cannot change version project facet Dynamic Web Module to 3.1

解决方法:
pom.xml文件
<build>
<plugins>
<plugin><!-- 这里改 settings文件也要改 -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
Settings文件 org.eclipse.wst.common.project.facet.core.xml文件也要修改 version="3.1
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<fixed facet="wst.jsdt.web"/>
<installed facet="jst.web" version="3.1"/>
<installed facet="wst.jsdt.web" version="1.0"/>
<installed facet="java" version="1.8"/>
</faceted-project>
博客主要围绕无法将项目方面的Dynamic Web Module版本更改为3.1的问题展开,给出了解决办法,需对pom.xml文件、Settings文件以及org.eclipse.wst.common.project.facet.core.xml文件进行修改,将版本设为3.1。
379

被折叠的 条评论
为什么被折叠?



