copy 依赖的某个maven依赖到指定的目录

    <build>

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.10</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>

<configuration>
<outputDirectory>${project.build.directory}/../../../deploy/</outputDirectory>
<overWriteReleases>true</overWriteReleases>
<!--
<useSubDirectoryPerArtifact>true</useSubDirectoryPerArtifact>
-->
<!--
<stripVersion>true</stripVersion>
-->
<!-- <excludeScope>provided</excludeScope>-->
<includeGroupIds>com.alibaba,org.javassist</includeGroupIds>
<includeArtifactIds>transmittable-thread-local,javaassist</includeArtifactIds>
</configuration>
</execution>
</executions>
</plugin>
</plugins>

</build>
上一篇:springboot整合mybatis-plus逆向工程


下一篇:四、数据类型 10.不可变类型的深浅拷贝