eclipse maven wtp jar/lib deploy

参考: http://www.redredred.com.au/m2eclipse-and-wtp/

eclipse工程(with maven & wtp)在部署的时候, 所有通过maven配置的jar都没有复制过去, 需要在 .classpath文件中添加<attributes/>部分

<classpathentry exported="true" kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER">
	<attributes>
		<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib" />
	</attributes>
</classpathentry>

猜你喜欢

转载自jerryzxm.iteye.com/blog/1114680