Developers, Developers, Developers! Maksim Sorokin IT Blog

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.

Comments (0) Trackbacks (0)

Sorry, the comment form is closed at this time.

Trackbacks are disabled.