4Jul/10Off
Dumping Maven Dependencies to Specific Folder
In order to dump all specified dependencies, which are specified in pom.xml, one has to use Maven Dependency Plugin:
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${dependencies.dir}</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
where ${dependencies.dir} stands for folder where to dump the dependencies.