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>