所有依赖的jar将提取到lib目录

1.在pom.xml添加如下内容:

<build> 
<plugins> 
<plugin> 
<artifactId>maven-dependency-plugin</artifactId> 
<configuration> 
<outputDirectory>${project.build.directory}/lib</outputDirectory> 
<excludeTransitive>false</excludeTransitive> 
<stripVersion>true</stripVersion> 
</configuration> 
</plugin> 

 

2.执行mvn dependency:copy-dependencies 

 

posted @ 2015-12-31 11:46  kevin-zhang  阅读(438)  评论(0编辑  收藏  举报