When you develop a MAVEN project in spring tool Suite, create a Web project by creating a new Maven-archetype-webapp method, and discover that cannot change occurs when changing the Dynamic Web module of a project Version of Project facet Dynamic Web Module to 3.0 issue , first to record the resolution of this problem
1 origin of the problem
Right-click Eclipse Project, select Properties, select Dynamic Web Module inside project Facets, change 2.3 to 3.0, and you may be prompted with the following information:
Cannot change version of project Facets Dynamic Web Module to 3.0
This means that you cannot modify it and you need to do the following.
2 Modifying a configuration file
Locate the project's hard disk directory, and open the. Setting folder under Projects, such as:
Locate the org.eclipse.wst.common.project.facet.core.xml file in the. Setting folder, modify the <installed facet= "Jst.web" version= "2.3"/> The file format is roughly the following:
<?xml version= "1.0" encoding= "UTF-8"?>
<faceted-project>
<runtime name= "Apache Tomcat v5.5"/>
<fixed facet= "Jst.web"/>
<fixed facet= "Jst.java"/>
<installed facet= "Jst.java" version= "5.0"/>
<installed facet= "Jst.web" version= "3.0"/>
<installed facet= "Wst.jsdt.web" version= "1.0"/>
</faceted-project>
And then:
- Right-click on the project Explorer panel.
- Select maven»update Project (or press Alt+F5 )
How eclipse modifies Dynamic Web module version