在使用eclipse发布项目的时候,引用的maven以及其他外引的jar包都部署不到tomcat的web-inf/lib,经过一份查找,最终解决,方案如下,在工程的.project文件中修改
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry including="**/*.java" kind="src" output="WebRoot/WEB-INF/classes" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.6.0_14"/>
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/classonline"/>
<classpathentry kind="output" path="WebRoot/WEB-INF/classes"/>
</classpath>
红色字体是在正常的.project文件里加的