Skip to content

Instantly share code, notes, and snippets.

@gautamr
Created October 18, 2012 11:25
Show Gist options
  • Save gautamr/3911169 to your computer and use it in GitHub Desktop.
Save gautamr/3911169 to your computer and use it in GitHub Desktop.
maven unpack specific dependency
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.5.1</version>
<executions>
<execution>
<id>unpack-finch-dist</id>
<phase>package</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>com.gr</groupId>
<artifactId>test-dist</artifactId>
<version>0.1-SNAPSHOT</version>
<classifier>tomcat</classifier>
<type>zip</type>
<overWrite>false</overWrite>
<outputDirectory>${project.build.directory}/sample-app-tomcat</outputDirectory>
<!--destFileName>optional-new-name.jar</destFileName -->
<!--includes>**/*.class,**/*.xml</includes -->
<!--excludes>**/*test.class</excludes -->
</artifactItem>
</artifactItems>
<!--includes>**/*.java</includes -->
<!--excludes>**/*.properties</excludes> <outputDirectory>${project.build.directory}/wars</outputDirectory>
<overWriteReleases>false</overWriteReleases> <overWriteSnapshots>true</overWriteSnapshots -->
</configuration>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment