Myeclipse project转换为eclipse project的正确方法(Myeclipse8.5版本转到eclipse java ee juno)

来源:互联网 发布:数据库基础pdf 编辑:程序博客网 时间:2024/06/10 05:30

在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文件夹

参考了http://bbs.csdn.net/topics/300232489
0 0
原创粉丝点击