天天看点

maven打包的时候导出依赖jar包

<build>

<plugins>

<plugin>

<groupId>org.apache.maven.plugins</groupId>

<artifactId>maven-dependency-plugin</artifactId>

<executions>

<execution>

<id>copy</id>

<phase>install</phase>

<goals>

<goal>copy-dependencies</goal>

</goals>

<configuration>

<outputDirectory>target/lib</outputDirectory>

</configuration>

</execution>

</executions>

</plugin>

</plugins>

</build>

本文转自 cd1989929 51CTO博客,原文链接:http://blog.51cto.com/chend/1902908