1.新建一个Web工程,或者从现有的Myeclipse的Web工程的.project文件里拷贝如下红色部分,到IDEA工程的.project文件里覆盖
2.class文件不编译,需要改变build path->source下的class文件编译目录
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription><name>dms</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.genuitec.eclipse.j2eedt.core.WebClasspathBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.genuitec.eclipse.j2eedt.core.J2EEProjectValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.genuitec.eclipse.j2eedt.core.webnature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
</projectDescription>
本文介绍如何在IntelliJ IDEA中配置从Myeclipse迁移过来的Web工程项目,包括修改.project文件以确保正确的项目性质及构建指令,以及调整编译输出路径。

2534

被折叠的 条评论
为什么被折叠?



