You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Beyer,Nathan" <NB...@CERNER.COM> on 2008/08/22 20:03:43 UTC

manipulating an existing archive during assembly

I'm using the assembly plugin to generate a few archives for distribution. I'd like to be able to download an existing archive (zip, tar.gz) and extract some of its contents and then include it in an assembly. Does anyone have suggestions on how to go about this?

For example, download a tomcat distribution, extract the contents, remove all existing files/dirs in 'webapps' and then add a war file and create an assembly of the results.

I suspect that I'm getting beyond the boundaries of Maven and should just move to creating Ant scripts for these application distributions.

Thanks.

-Nathan


----------------------------------------------------------------------
CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024.

Re: manipulating an existing archive during assembly

Posted by Geoffrey Wiseman <ge...@gmail.com>.
On Fri, Aug 22, 2008 at 2:03 PM, Beyer,Nathan <NB...@cerner.com> wrote:

> I'm using the assembly plugin to generate a few archives for distribution.
> I'd like to be able to download an existing archive (zip, tar.gz) and
> extract some of its contents and then include it in an assembly. Does anyone
> have suggestions on how to go about this?
>
> For example, download a tomcat distribution, extract the contents, remove
> all existing files/dirs in 'webapps' and then add a war file and create an
> assembly of the results.


The WAR plugin can do overlays, but in this case you're not dealing with a
WAR.  The Shade plugin can also do some serious transformations, although
the documentation's pretty spotty.  The easiest thing is probably what Brett
already suggested.

  - Geoffrey
-- 
Geoffrey Wiseman

Re: manipulating an existing archive during assembly

Posted by Brett Porter <br...@gmail.com>.
Use the dependency plugin to unpack the tomcat distribution, then
selectively include files in the assembly descriptor that you want to
reuse.

Cheers,
Brett

2008/8/23 Beyer,Nathan <NB...@cerner.com>:
> I'm using the assembly plugin to generate a few archives for distribution. I'd like to be able to download an existing archive (zip, tar.gz) and extract some of its contents and then include it in an assembly. Does anyone have suggestions on how to go about this?
>
> For example, download a tomcat distribution, extract the contents, remove all existing files/dirs in 'webapps' and then add a war file and create an assembly of the results.
>
> I suspect that I'm getting beyond the boundaries of Maven and should just move to creating Ant scripts for these application distributions.
>
> Thanks.
>
> -Nathan
>
>
> ----------------------------------------------------------------------
> CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024.
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

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