eclipse项目中的.project文件

eclipse项目中的.project文件

  • .project文件
  • buildSpec
  • natures
  • 普通jar工程
  • maven的jar工程
  • 普通Web工程
  • maven的Web工程

.project文件


<projectDescription>
	<name>name>
	<comment>comment>
	<projects>projects>
	<buildSpec>
		<buildCommand>
			<name>name>
			<arguments>arguments>
		buildCommand>
	buildSpec>
	<natures>
		<nature>nature>
	natures>
projectDescription>
  • 工程名:
  • 工程注释描述:
  • 具体加载方式信息:
  • 运行时需要的额外Eclipse插件:

buildSpec

org.eclipse.jdt.core.javabuilder:java工程需要
org.eclipse.m2e.core.maven2Builder:maven工程需要
org.eclipse.wst.common.project.facet.core.builder:
org.eclipse.wst.jsdt.core.javascriptValidator:验证工程的js文件,去掉会取消js验证
org.eclipse.wst.validation.validationbuilder:

natures

org.eclipse.jdt.core.javanature:java工程需要
org.eclipse.m2e.core.maven2Nature:maven工程需要
org.eclipse.wst.common.project.facet.core.nature:Convert to faceted form
org.eclipse.jem.workbench.JavaEMFNature:Web工程需要
org.eclipse.wst.common.modulecore.ModuleCoreNature:

eclipse项目中的.project文件_第1张图片
eclipse项目中的.project文件_第2张图片
点击 Convert to faceted form

勾选Java
产生org.eclipse.wst.common.project.facet.core.builderorg.eclipse.wst.common.project.facet.core.nature

勾选Javascript
产生org.eclipse.wst.validation.validationbuilderorg.eclipse.wst.jsdt.core.jsNature

勾选Dynamic Web Module
产生org.eclipse.wst.validation.validationbuilderorg.eclipse.jem.workbench.JavaEMFNatureorg.eclipse.wst.common.modulecore.ModuleCoreNatureorg.eclipse.wst.jsdt.core.jsNature

普通jar工程

buildSpec.buildCommand.name
org.eclipse.jdt.core.javabuilder:
org.eclipse.wst.common.project.facet.core.builder:点击Convert to faceted form

natures.nature
org.eclipse.jdt.core.javanature:
org.eclipse.wst.common.project.facet.core.nature:点击Convert to faceted form

maven的jar工程

buildSpec.buildCommand.name
org.eclipse.jdt.core.javabuilder:
org.eclipse.m2e.core.maven2Builder:
org.eclipse.wst.common.project.facet.core.builder:点击Convert to faceted form

natures.nature
org.eclipse.jdt.core.javanature:
org.eclipse.m2e.core.maven2Nature:
org.eclipse.wst.common.project.facet.core.nature:点击Convert to faceted form

普通Web工程

buildSpec.buildCommand.name
org.eclipse.jdt.core.javabuilder:
org.eclipse.wst.common.project.facet.core.builder:
org.eclipse.wst.validation.validationbuilder:

natures.nature
org.eclipse.jem.workbench.JavaEMFNature:
org.eclipse.wst.common.modulecore.ModuleCoreNature:
org.eclipse.wst.common.project.facet.core.nature:
org.eclipse.jdt.core.javanature:
org.eclipse.wst.jsdt.core.jsNature:

maven的Web工程

buildSpec.buildCommand.name
org.eclipse.jdt.core.javabuilder:
org.eclipse.wst.common.project.facet.core.builder:
org.eclipse.m2e.core.maven2Builder:
org.eclipse.wst.validation.validationbuilder:

natures.nature
org.eclipse.jem.workbench.JavaEMFNature:
org.eclipse.wst.common.modulecore.ModuleCoreNature:
org.eclipse.wst.common.project.facet.core.nature:
org.eclipse.jdt.core.javanature:
org.eclipse.m2e.core.maven2Nature:
org.eclipse.wst.jsdt.core.jsNature:

你可能感兴趣的:(eclipse)