1-After the project is copied or modified in Eclipse or workspace, the project is discovered or the original project name after it is deployed

Source: Internet
Author: User

1 problem Leads

1 copy a project directly in Eclipse, modify the name, and then deploy the project name after deployment with the original project name

2 When you copy a project directly in the Eclipse workspace, the same problem occurs when the name is modified.

2 Solving the above problems

After copying the project, go to the project root and open the. Setting folder and find "Org.eclipse.wst.common.component"

Open the "org.eclipse.wst.common.component" file as follows:

<?XML version= "1.0" encoding= "UTF-8"?><Project-modulesID= "Modulecoreid"project-version= "1.5.0">    <Wb-moduleDeploy-name= "WEBTest25">        <Wb-resourceDeploy-path="/"Source-path= "/webcontent"Tag= "Defaultrootsource"/>        <Wb-resourceDeploy-path= "/web-inf/classes"Source-path= "/src"/>        < Propertyname= "Java-output-path"value= "/WEBTest25/build/classes"/>        < Propertyname= "Context-root"value= "WEBTest25"/>    </Wb-module></Project-modules>

Modify it to: solve the above problem

<?XML version= "1.0" encoding= "UTF-8"?><Project-modulesID= "Modulecoreid"project-version= "1.5.0">    <Wb-moduleDeploy-name= "WEBTest26">        <Wb-resourceDeploy-path="/"Source-path= "/webcontent"Tag= "Defaultrootsource"/>        <Wb-resourceDeploy-path= "/web-inf/classes"Source-path= "/src"/>        < Propertyname= "Java-output-path"value= "/WEBTest26/build/classes"/>        < Propertyname= "Context-root"value= "WEBTest26"/>    </Wb-module></Project-modules>

1-After the project is copied or modified in Eclipse or workspace, the project is discovered or the original project name after it is deployed

Related Article

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.