在Eclipse中将java Project转换成Dynamic Web Project
编辑工程的.project文件: 添加 <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> 到 <natures> … </natures>
eg. 例如将 <natures> <nature>org.eclipse.jdt.core.javanature</nature> </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> </natures> 在Eclipse中将Java Project转换成Dynamic Web Project 选中项目右键,选择“属性”,在右窗口选择“项目构面”,然后选择“动态WEB”模块,根据提示选择要加的其它内容。OK 在Eclipse中打开“project properties",会看到新增了很多选择项,点中"Project Facets",按下图配置: 3. 项目即可成为一个被WPT识别的项目。 |
|