Re: Assembly plugin: specifying an alternative extension name for the assembly

2010-02-04 Thread Graham Charters
Thanks, Joe.  I've only just got round to looking into this again.  I
found I can get this to work by adding the following to the maven
assembly plugin's components.xml file:

component
  roleorg.codehaus.plexus.archiver.Archiver/role
  role-hintext/role-hint
  
implementationorg.codehaus.plexus.archiver.zip.ZipArchiver/implementation
  instantiation-strategyper-lookup/instantiation-strategy
/component

Where 'ext' is the extension I want to use instead of zip.  I've only
been able to get this to work by having my own copy of the maven
assembly plugin.  Is there any other way to provide this configuration
from outside the maven assembly plugin?

Many thanks for any help.

Regards, Graham.




On 19 November 2009 13:03, Joe Hindsley jhinds...@gmail.com wrote:
 Hi Graham,

 The extension for the assembly is configured with the format element of
 the assembly descriptor. There are only a couple of supported formats. My
 guess is that you'd have to write a custom Archiver to get a different
 extension, but haven't looked under the hood of the assembly plugin to know
 for sure.

 More information is here:

 http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html#class_assembly

 Joe Hindsley


 Graham Charters wrote:

 Hi,

 I'm trying to create a zip file using the assembly plugin, but I'd
 like it to have a different extension (not .zip).  I've tried using
 finalName/, but that still insists on giving the file the .zip
 extension.

 Is this possible using the assembly plugin, or should I be using something
 else?

 Many thanks for any help.

 Regards, Graham.

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


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



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



Assembly plugin: specifying an alternative extension name for the assembly

2009-11-19 Thread Graham Charters
Hi,

I'm trying to create a zip file using the assembly plugin, but I'd
like it to have a different extension (not .zip).  I've tried using
finalName/, but that still insists on giving the file the .zip
extension.

Is this possible using the assembly plugin, or should I be using something else?

Many thanks for any help.

Regards, Graham.

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



Re: Assembly plugin: specifying an alternative extension name for the assembly

2009-11-19 Thread Joe Hindsley

Hi Graham,

The extension for the assembly is configured with the format element 
of the assembly descriptor. There are only a couple of supported 
formats. My guess is that you'd have to write a custom Archiver to get a 
different extension, but haven't looked under the hood of the assembly 
plugin to know for sure.


More information is here:

http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html#class_assembly

Joe Hindsley


Graham Charters wrote:

Hi,

I'm trying to create a zip file using the assembly plugin, but I'd
like it to have a different extension (not .zip).  I've tried using
finalName/, but that still insists on giving the file the .zip
extension.

Is this possible using the assembly plugin, or should I be using something else?

Many thanks for any help.

Regards, Graham.

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



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