首页 > 代码库 > maven打包的时候导出依赖jar包

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>


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