Hello Christian, if you want to specify which dependency you're going to extract, you may want to use the dependency:unpack mojo instead of dependency:unpack-dependencies. You don't want all of your dependencies extracted in your outputDirectory, would you? ;)
If so, you should configure the maven-dependency-plugin like so: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>unpack</id> <phase>process-sources</phase> <goals> <goal>unpack</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>testlib</groupId> <artifactId>testlib</artifactId> <version>1.0</version> <type>zip</type> </artifactItem> </artifactItems> <outputDirectory>${project.build.directory }/alternateLocation</outputDirectory> <overWriteReleases>false</overWriteReleases> <overWriteSnapshots>true</overWriteSnapshots> </configuration> </execution> </executions> </plugin> I hope this helps somehow. :) Cheers! Nap On 3/29/07, Christian Clauss <[EMAIL PROTECTED]> wrote:
Hi everybody, I have a project dependency (a zipped library-file) in my local repository. I want to unzip this file before starting compiling. I tried it with the maven-dependency-plugin but it didn't work. Any ideas why? Or what I could do? No error message, it says expanding <file> into <dir> but there is nothing. Thanks for your help. Christian <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>unpack-dependencies</id> <phase>process-sources</phase> <goals> <goal>unpack-dependencies</goal> </goals> <configuration> <outputDirectory>${project.build.directory }/alternateLocation</outputDirecto ry> <overWriteReleases>false</overWriteReleases> <overWriteSnapshots>true</overWriteSnapshots> <type>zip</type> </configuration> </execution> </executions> </plugin> <dependencies> <dependency> <groupId>testlib</groupId> <artifactId>testlib</artifactId> <version>1.0</version> <type>zip</type> <scope>compile</scope> </dependency> </dependencies>