Skip to content

Instantly share code, notes, and snippets.

@Qkyrie
Created July 17, 2013 08:02
Show Gist options
  • Save Qkyrie/6018644 to your computer and use it in GitHub Desktop.
Save Qkyrie/6018644 to your computer and use it in GitHub Desktop.
copy library to folder with maven
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>copy</id>
<phase>generate-resources</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>com.trust1t.software</groupId>
<artifactId>my-library</artifactId>
<version>1.0.0</version>
<type>jar</type>
<classifier>jar-with-dependencies</classifier>
<overWrite>true</overWrite>
<outputDirectory>${library.directory}</outputDirectory>
<destFileName>outputfile.jar</destFileName>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment