How eclipse modifies Dynamic Web module version

Source: Internet
Author: User

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:

    1. Right-click on the project Explorer panel.
    2. Select maven»update Project (or press Alt+F5 )

How eclipse modifies Dynamic Web module version

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.