maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brett Vanderveen <brett.vanderv...@gfs.com>
Subject Re: Maven zip artifact
Date Mon, 24 Jun 2013 13:26:20 GMT
Hi Igor,
I have seen people use the Maven Antrun
plugin<https://people.apache.org/~aramirez/maven-antrun-plugin/usage.html>for
this:
<plugin>
  <artifactId>maven-antrun-plugin</artifactId>
  <executions>
    <execution>
      <phase>install</phase>
      <configuration>
        <tasks>
          <!-- Using an ant task to deflate dependency.zip -->
          <unzip dest="${project.basedir}/deploy/target"
src="dependency.zip"/>
        </tasks>
      </configuration>
      <goals>
        <goal>run</goal>
      </goals>
    </execution>
  </executions>
</plugin>

It's not the most elegant method, but maybe someone else can inform us of a
better way.

*Brett VanderVeen* | brett.vanderveen@gfs.com

*Gordon Food ServiceĀ®* | IS Transportation | *www.gfs.com*

P 616-717-6042 | C 630-310-0172

Street: 1300 Gezon Parkway SW | Wyoming, MI 49509-9300

Mail: Mail Code 12003 | PO Box 1787 | Grand Rapids, MI 49501-1787


On Sun, Jun 23, 2013 at 6:07 AM, Igor Zapletnev <igor.zapletnev@gmail.com>wrote:

> Hi all,
>
> I have an artifact that has dependency to artifact with zip package type.
> How I can get an access (unzip and manager files inside) during runtime in
> my custom Mojo?
>
> Thanks,
> Igor
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message