1. Open the. Settings folder in the directory where the project is located
Open Org.eclipse.wst.common.project.facet.core.xml
Change <installed facet= "java" version= "1.5"/> to <installed facet= "java" version= "1.8"/> <installed facet= "Jst.web" version= "2.3"/> Changed to <installed facet= "Jst.web" version= "3.0"/>
<?xml version= "1.0" encoding= "UTF-8"?><faceted-project> <fixed facet= "Wst.jsdt.web"/> <installed facet= "java" version= "1.8"/> <installed facet= "Jst.web" version= "3.0"/> < Installed facet= "Wst.jsdt.web" version= "1.0"/></faceted-project>
2. Increase in Pom.xml
<!--define the project compile level-- <plugin> <groupid>org.apache.maven.plugins</ groupid> <artifactId>maven-compiler-plugin</artifactId> <configuration> < source>1.8</source> <target>1.8</target> </configuration>
Resolve MAVEN Project cannot change version of Project facet Dynamic Web module to 3.0/3.1