You should use the includeArtifactId to filter exactly the ones you want for
each folder. It looks like it¹s picking up both of your files in both
executions so you just need to be more specific which artifacts to unpack.
On 4/1/09 11:42 PM, "David Hoffer" <dhoff...@gmail.com> wrote:

> I'm having problems figuring out how to configure the
> maven-dependency-plugin to unpack 2 separate dependencies.  I have 3
> executions, the first uses the copy-dependencies goal to copy a swf
> artifact, this seems to work.
> 
> Then I have two executions each using unpack-dependencies goal; the
> first unpacks some flex config files and the second unpacks a spring
> configuration file.  Here is my pom:
> 
> <executions>
>                     <execution>
>                         <id>copy-swf</id>
>                         <phase>process-classes</phase>
>                         <goals>
>                             <goal>copy-dependencies</goal>
>                         </goals>
>                         <configuration>
> 
> <outputDirectory>${project.build.directory}/${project.build.finalName}</output
> Directory>
> 
> <includeArtifacIds>cdf-as-client-testapp</includeArtifacIds>
>                             <includeTypes>swf</includeTypes>
>                             <overWrite>true</overWrite>
>                         </configuration>
>                     </execution>
> 
>                     <execution>
>                         <id>unpack-config</id>
>                         <goals>
>                             <goal>unpack-dependencies</goal>
>                         </goals>
>                         <phase>package</phase>
>                         <configuration>
> 
> <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF
> /flex
>                             </outputDirectory>
> 
> <includeArtifacIds>cdf-blaze-svcs-config</includeArtifacIds>
>                             <excludeTransitive>true</excludeTransitive>
>                             <excludeTypes>jar,swf,pom</excludeTypes>
>                             <overWriteReleases>true</overWriteReleases>
>                             <overWriteSnapshots>true</overWriteSnapshots>
>                         </configuration>
>                     </execution>
> 
>                     <execution>
>                         <id>unpack-spring-config</id>
>                         <goals>
>                             <goal>unpack-dependencies</goal>
>                         </goals>
>                         <phase>package</phase>
>                         <configuration>
> 
> <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF
> /spring
>                             </outputDirectory>
> 
> <includeArtifacIds>cdf-spring-directbroker-config</includeArtifacIds>
>                             <excludeTransitive>true</excludeTransitive>
>                             <excludeTypes>jar,swf,pom</excludeTypes>
>                             <overWriteReleases>true</overWriteReleases>
>                             <overWriteSnapshots>true</overWriteSnapshots>
>                         </configuration>
>                     </execution>
> </executions>
> 
> The problem is that the output folders /WEB-INF/flex & /WEB-INF/spring
> BOTH contain the same contents, i.e. they BOTH contain what is
> supposed to be only in flex and only in spring.  Furthermore BOTH
> contain some content not from either artifact!?!  This unexpected
> content seems to be some flex content which I have no idea why it is
> adding.
> 
> How can I use maven-dependency-plugin to just unpack one artifact and
> put it in a separate folder?
> 
> -Dave
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 

Reply via email to