Import the MyEclipse project into eclipse

Source: Internet
Author: User

1. First make sure that your eclipse is a Java EE version, or that you have installed the WTP plugin

2. Then modify the. project file under Eclipse Engineering:

3. Join in <natures></natures>

<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>


4. Join in <buildSpec></buildSpec>

<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>

5. Refresh project, right click->properties->project facets->modify Project, select Java and dynamic Web Module, Check tomcat within runtime.
(Configuring Context Root and Content Directory and the source path---not required)6.[Optional] Modify the Org.eclipse.wst.common.component file in the. Settings folder in the project (change "webcontent" to "WebRoot")

< XML version= "1.0" encoding= "UTF-8"?>
< Project-modules id= "Modulecoreid" project-version= "1.5.0" >
<wb-module deploy-name= "Logistics_portal" >
<wb-resource deploy-path= "/" source-path= "/webroot" tag= "Defaultrootsource"/>
<wb-resource deploy-path= "/web-inf/classes" source-path= "/src"/>
<wb-resource deploy-path= "/web-inf/classes" source-path= "/test"/>
<property name= "Context-root" value= "Logistics_portal"/>
<property name= "Java-output-path" value= "/logistics_portal/webroot/web-inf/classes"/>
</wb-module>
</project-modules>

Also, if AXIS2 only supports version 2.5 of the Web module, your Web Module version is higher than 2.5, then the Org.eclipse.wst.common.project.facet.core file in the. Setting directory can be modified to the corresponding version.

< XML version= "1.0" encoding= "UTF-8"?>
< faceted-project>
<fixed facet= "Wst.jsdt.web"/>
<installed facet= "java" version= "1.6"/>
<installed facet= "Jst.web" version= "2.5"/>
<installed facet= "Wst.jsdt.web" version= "1.0"/>
</faceted-project>
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.