replace the ...'s as necessary
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>...</artifactId>
<groupId>...</groupId>
<version>...-SNAPSHOT</version>
</parent>
<groupId>...</groupId>
<artifactId>...</artifactId>
<dependencies>
<dependency>
<groupId>...</groupId>
<artifactId>web-app1</artifactId>
<type>war</type>
</dependency>
<dependency>
<groupId>...</groupId>
<artifactId>web-app2</artifactId>
<type>war</type>
</dependency>
<dependency>
<groupId>...</groupId>
<artifactId>web-app3</artifactId>
<type>war</type>
</dependency>
<dependency>
<groupId>...</groupId>
<artifactId>cli-app</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<configuration>
<stripVersion>true</stripVersion>
<excludeTransitive>true</excludeTransitive>
<overWriteReleases>true</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
</configuration>
<executions>
<execution>
<id>unpack-web-app1</id>
<phase>generate-resources</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<includeGroupIds>...</includeGroupIds>
<includeArtifactIds>web-app1</includeArtifactIds>
<includeTypes>war</includeTypes>
<outputDirectory>${project.build.directory}/web-app1</outputDirectory>
</configuration>
</execution>
<execution>
<id>unpack-web-app2</id>
<phase>generate-resources</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<includeGroupIds>...</includeGroupIds>
<includeArtifactIds>web-app2</includeArtifactIds>
<includeTypes>war</includeTypes>
<outputDirectory>${project.build.directory}/web-app2</outputDirectory>
</configuration>
</execution>
<execution>
<id>unpack-web-app3</id>
<phase>generate-resources</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<includeGroupIds>...</includeGroupIds>
<includeArtifactIds>web-app3</includeArtifactIds>
<includeTypes>war</includeTypes>
<outputDirectory>${project.build.directory}/web-app3</outputDirectory>
</configuration>
</execution>
<execution>
<id>copy-cli-app</id>
<phase>generate-resources</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<includeGroupIds>...</includeGroupIds>
<includeArtifactIds>cli-app</includeArtifactIds>
<includeTypes>jar</includeTypes>
<outputDirectory>${project.build.directory}/bin</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
2009/4/3 David Hoffer <[email protected]>
> Please send sample when you get back.
>
> Dave Hoffer
> - sent via G1
>
> On Apr 3, 2009 12:51 AM, "Stephen Connolly" <
> [email protected]>
> wrote:
>
> I have this working no problem.... but I am on vacation til monday, so do
> not have access to a sample pom
>
> 2009/4/2 David Hoffer <[email protected]>
>
> > I did use excludeTransitive but did not help so I just can't fall back >
> to unpack-dependencies. ...
>