Thursday, February 19, 2015

Maven Copy dependency jar files/ get dependency jar file to custom location

Added the below plugin in the pom.xml
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>lib</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
view raw pom.xml hosted with ❤ by GitHub


run the below command

mvn install dependency:copy-dependencies

default target/dependency

mvn dependency:copy-dependencies

Related Posts:

0 comments:

Post a Comment