I tried that with no success. I explicitly set the one I want and excluded the one I didn't want but it still did both. There is some majic in there that I just don't understand.
I had to separate my project into to multi-module builds and use the unpack goal instead. This one actually works, but it has to reference an artifactId not in the current project hence the two projects. -Dave On Thu, Apr 2, 2009 at 11:37 AM, Brian E. Fox <[email protected]> wrote: > > > 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" <[email protected]> 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: [email protected] >> For additional commands, e-mail: [email protected] >> >> > >
