MyEclipse web项目迁移到Eclipse

1. 导入项目

2. 修改项目的.project文件,保存,重启Eclipse。

    在<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>

3.在Eclipse中打开“project properties",会看到新增了很多选择项,点中"Project Facets":

勾选: dynamic web module  和 java 两个选项.
Apply.

刷新即可.

4.修改\.settings \org.eclipse.wst.common.component文件

<wb-resource deploy-path="/" source-path="/WebRoot"/>

猜你喜欢

转载自kevin-gmail-com.iteye.com/blog/1970620