Maven Unzip Plugin

Maven plugin which extracts a zip archive into specified directory.

Download

Usage

This is how I use it in the Insolvenční rejstřík project:

  <build>
    <plugins>

      <plugin>
        <groupId>cz.dynawest.maven</groupId>
        <artifactId>maven-jabber-plugin</artifactId>
        <version>1.0</version>

        <executions>
          <execution><phase>generate-test-resources</phase><goals><goal>unzip</goal></goals></execution>
        </executions>

        <configuration>
          <srcArchive>test-data/sql/test-dataset-01.zip</srcArchive>
          <destDir>src/test/resources</destDir>
          <failIfNotFound>false</failIfNotFound>
        </configuration>

      </plugin>

    </plugins>
  </build>

Documentation of respective configuration items are in the source and in the POJO.

Dependencies

Depends only on JDK's ZIP implementation.

Created for Insolvenční rejstřík.