maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <cody.a.fy...@wellsfargo.com>
Subject RE: Maven zip artifact
Date Mon, 24 Jun 2013 13:40:45 GMT
How to unzip with Maven:

http://maven.apache.org/plugins/maven-dependency-plugin/examples/unpacking-artifacts.html

http://maven.apache.org/plugins/maven-dependency-plugin/unpack-dependencies-mojo.html

How to call other plugins from your mojo:

http://stackoverflow.com/questions/4243686/how-to-programatically-invoke-a-maven-dependency-plugin/5761554#5761554

Google is your friend...


Cody Fyler
Lending Grid Build Team
cody.a.fyler@wellsfargo.com
(515)-441-0814

-----Original Message-----
From: Brett Vanderveen [mailto:brett.vanderveen@gfs.com] 
Sent: Monday, June 24, 2013 8:26 AM
To: Maven Users List
Subject: Re: Maven zip artifact

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(r)* | 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
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message