How to Solve maven project: Cannot change version of project facet Dynamic web module to 3.0
1. Open the .settings folder in the project directory
open org.eclipse.wst.common.project.facet.core.xml
<installed facet=”java” version=”1.5″/> chane to <installed facet=”java” version=”1.8″/>,把 <installed facet=”jst.web” version=”2.3″/> chane 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. Add 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>
</plugin>
Similar Posts:
- How eclipse modifies dynamic web module version
- The server does not support version 3.1 of the JEE Web module specification.
- [java development series] – Tomcat compilation error
- [Solved] Dynamic Web Module 3.0 requires Java 1.6 or newer
- Maven warnning: ‘build.plugins.plugin.version’ is missing [How to Solve]
- [Solved] Error:java: error: release version 5 not supported & Switch Unrecognized String
- Dynamic Web Module 3.1 requires Java 1.7 or newer
- [Solved] Error:java: Compilation failed: internal java compiler error
- Error:java: javacTask: source release 8 requires target release 1.8
- Automatic version change of IntelliJ idea language level and Java compiler