Unzip dependency in maven

You can do it with dependencies:unpack-dependencies: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>2.2</version> <executions> <execution> <id>unpack-sigar</id> <phase>package<!– or any other valid maven phase –></phase> <goals> <goal>unpack-dependencies</goal> </goals> <configuration> <includeGroupIds>org.hyperic</includeGroupIds> <includeArtifactIds>sigar-dist</includeArtifactIds> <outputDirectory> ${project.build.directory}/wherever/you/want/it <!– or: ${project.basedir}/wherever/you/want/it –> </outputDirectory> </configuration> </execution> </executions> </plugin> Reference: Unpacking project dependencies dependency:unpack-dependencies