I can unpack zip file via the maven-dependency plugin, but currently i have the problem that inside that zip file other zip files are include and i need to unpack them as well. How can i do this?
+2
A:
You can unzip any files using ant task runner plugin:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<id>prepare</id>
<phase>validate</phase>
<configuration>
<tasks>
<echo message="prepare phase" />
<unzip src="zips/archive.zip" dest="output/" />
<unzip src="output/inner.zip" dest="output/" />
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
Boris Pavlović
2010-07-16 11:06:13