You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Niranjan Rao <nh...@gmail.com> on 2011/09/01 01:42:28 UTC

Re: Change extension of output from assembly plugin

Don't know about maven plugin that will do this, but one way to do this 
something like follows which builds firefox xpi file which is basically 
gzip. Please make sure you adjust the phase according to your need.



<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>process-resources</phase>
<configuration>
<tasks>
<zip destfile="target/fiportscripter.xpi" basedir="target/classes" />
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>

On 08/31/2011 07:39 AM, Victor Kirk wrote:
>
> Hi,
>
> Does anyone know of a way for me to change the extension used when 
> using the assembly plugin?  I have a large number of projects which 
> need to packaged into their own zip file but with a particular 
> extension rather than .zip
>
> Regards, Vic
>
> *Victor Kirk*
> Analyst
> Transportation Systems - Network Services
> Serco Civil Government
> Cavendish House
> Clearwater Park
> Prince's Wharf
> Stockton-On-Tees
> TS17 6QY
>
> 	
>
> T +44 (0) 1642 636 894
> F +44 (0) 1642 636 701
>
>
> *Victor.Kirk@serco.com <ma...@serco.com>*
>
> *www.serco.com* <http://www.serco.com>
>
> <http://www.serco.com/>
>
> This e-mail and any attachments are for the intended addressee(s) only 
> and may contain confidential and/or privileged material. If you are 
> not a named addressee, do not use, retain or disclose such information.
> This email is not guaranteed to be free from viruses and does not bind 
> Serco in any contract or obligation.
> Serco Limited. Registered in England and Wales. No: 242246
> Registered Office: Serco House,16 Bartley Wood Business Park, Hook, 
> Hampshire RG27 9UY United Kingdom.
>