在eclipse中导入Myeclipse项目
修改eclipse工程下的.project文件
删除这一段
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments></arguments>
</buildCommand>
在<natures></natures>中加入
Java code
1
2
3
4
|
<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>
|
在<buildSpec></buildSpec>中加入
Java code
1
2
3
4
5
6
7
8
9
10
11
|
<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>
|
刷新项目,项目->右击->Properties->Project Facets->Modify Project,选择Java和Dynamic Web Module,注意Dynamic Web Module选择2.5版本
打开.settings文件下org.eclipse.wst.common.component文件,更改如下红色部分
<wb-resource deploy-path="/" source-path="/
WebRoot" tag="defaultRootSource"/>
再删除根目录下的WebContent文件夹