eclipse中.classpath 文件说明

<!-- .classpath文件用于记录项目编译环境的所有信息,包括:源文件路径、编译后class文件存放路径、依赖的jar包路径、运行的容器信息、依赖的外部project等信息。 -->
<!-- ①以”classpath”为根节点,每个“classpathentry”节点代表一个说明信息。 -->
<!-- ②每个“classpathentry”以“kind”属性指明类型,“path”指明路径。 -->
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
	<!-- 源文件位置:kind=”src”的操作对应于“Java Build Path”的“Source”tab页 -->
	<classpathentry kind="src" output="target/classes" path="src/main/java">
		<attributes>
			<attribute name="optional" value="true"/>
			<attribute name="maven.pomderived" value="true"/>
		</attributes>
	</classpathentry>
	<classpathentry kind="src" path="src/main/resources/com/xiangyang/thit/mapper"/>
	<classpathentry excluding="**|com/xiangyang/thit/mapper/" kind="src" output="target/classes" path="src/main/resources">
		<attributes>
			<attribute name="maven.pomderived" value="true"/>
		</attributes>
	</classpathentry>
	<classpathentry kind="src" output="target/test-classes" path="src/test/java">
		<attributes>
			<attribute name="optional" value="true"/>
			<attribute name="maven.pomderived" value="true"/>
		</attributes>
	</classpathentry>
	
	<!-- 项目运行依赖的jar包 -->
	<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/spring-boot-starter-1.4.0.jar"/>
	<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/spring-boot-starter-logging-1.4.0.jar"/>	
	<classpathentry kind="lib" path="src/main/webapp/WEB-INF/lib/spring-boot-starter-web-1.4.0.jar"/>
	
	<!-- con即是container,就是程序运行的容器,或者就说是运行环境 -->
	<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
		<attributes>
			<attribute name="maven.pomderived" value="true"/>
			<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
		</attributes>
	</classpathentry>
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6">
		<attributes>
			<attribute name="maven.pomderived" value="true"/>
		</attributes>
	</classpathentry>
	<!-- output用于指定java源文件编译后的class文件存放路径 -->
	<classpathentry kind="output" path="target/classes"/>
</classpath>

  

posted @ 2017-11-30 15:00  lzhxiangyang  阅读(1191)  评论(0)    收藏  举报