Modify the deployment name of the project after the copy project

Source: Internet
Author: User

After a project copy builds a new project, you cannot modify the deployment name, which I think is probably a bug for Eclipse.



Locate the directory under Project. Settings, open file:

Org.eclipse.wst.common.component

<?xml version= "1.0" encoding= "UTF-8"? ><project-modules id= "Modulecoreid" project-version= "1.5.0" >
    <wb-module deploy-name= "Tap3parse" >
        <wb-resource deploy-path= "/" source-path= "/webcontent" tag= " Defaultrootsource "/>
        <wb-resource deploy-path="/web-inf/classes "source-path="/src/main/resources "/ >
        <wb-resource deploy-path= "/web-inf/classes" source-path= "/src/main/java"/>
        <wb-resource Deploy-path= "/web-inf/classes" source-path= "/src/test/java"/>
        <property name= "Context-root" value= " Tap3parse "/>
        <property name=" Java-output-path "value="/tap3parse/target/classes "/>
    </ Wb-module>
</project-modules>


Modify the Deploy-name to the name of the current project.

The following replaces Tap3parse with Billing-web.

<?xml version= "1.0" encoding= "UTF-8"? ><project-modules id= "Modulecoreid" project-version= "1.5.0" >
    <wb-module deploy-name= "Billing-web" >
        <wb-resource deploy-path= "/" source-path= "/WebContent" tag= " Defaultrootsource "/>
        <wb-resource deploy-path="/web-inf/classes "source-path="/src/main/resources "/ >
        <wb-resource deploy-path= "/web-inf/classes" source-path= "/src/main/java"/>
        <wb-resource Deploy-path= "/web-inf/classes" source-path= "/src/test/java"/>
        <property name= "Context-root" value= " Billing-web "/>
        <property name=" Java-output-path "value="/billing-web/target/classes "/>
    </ Wb-module>
</project-modules>

To refresh the project, publish:




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.