将maven项目中依赖的jar包导出到指定的目录
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<configuration>
<excludeTransitive>false</excludeTransitive>
<stripVersion>true</stripVersion>
</configuration>
</plugin>
进入工程目录执行:mvn dependency:copy-dependencies -DoutputDirectory=src/main/webapp/WEB-INF/lib -DincludeScope=compile
如果在eclipse工具上只要填写dependency:copy-dependencies -DoutputDirectory=src/main/webapp/WEB-INF/lib -DincludeScope=compile 即可
pom.xml中指定的jar就被导出到目录:src/main/webapp/WEB-INF/lib