project facets

接手一个前期的Web项目,当时是用MyEclipse建立的,用MyEclipse发布运行没有任何问题。

现在因为没有购买MyEclipse的年费,决定用EclipsE+WPT继续开发,没想到在WPT的Server中发现不了 该项目,于是使用下面的方法将其转换为WPT能识别的项目。

1. 修改项目的.project文件,保存,不记得是否需要重启Eclipse了。

    在<natures>
         …
      </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>
  <nature>org.eclipse.jdt.core.javanature</nature>
  <nature>com.sysdeo.eclipse.tomcat.tomcatnature</nature>
  <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
 </natures>

2. 在Eclipse中打开“project properties",会看到新增了很多选择项,点中"Project Facets",按 下图配置:

3. 项目即可成为一个被WPT识别的项目。

猜你喜欢

转载自ssydxa219.iteye.com/blog/1769345