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



Configuring components.xml into assembly plugin

2010-02-04 Thread Graham Charters
Hi,

I have a components.xml definition that tells the assembly plugin to
use the ZipArchiver when configured with formatext/format, where
'ext' is a new file extensions to use instead of zip.  The component
element looks as follows:

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

I can get this to work if I compile my own copy of the assembly
plugin, updating it's plexus/components.xml to include the
definitions, but the documentation seems to hint at a better way.

I've just started trying to include the definition through
containerDescriptorHandler / as follows:

containerDescriptorHandler
  handlerNameext/handlerName
  configuration
filePattern./components.xml/filePattern
  /configuration
/containerDescriptorHandler

I'm not sure if this is the right approach, but it gives me this gives
me the following error:

Assembly is incorrectly configured: null

Assembly: null is not configured correctly: Cannot find
ContainerDescriptorHandler with hint: ext

I searched for examples, but can't find anything that clearly
describes what I'm trying to do.  Any pointers or ideas on how to
fix/do this would be greatly appreciated.

Regards, Graham.

-
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