You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Peter Horlock <pe...@googlemail.com> on 2008/08/28 12:58:15 UTC

Assembly Plugin - Archive in Archive

Hi,

I am successfully using the Assembly Plugin to create an archive containing
extra content for a release.
However, now I would like to create another archive containing this archive,
plus the generated war file, plus a readme file for the client.

Any idea how that can be done?

Thanks in advance,

Peter

Re: Assembly Plugin - Archive in Archive

Posted by Dan Tran <da...@gmail.com>.
you can create multiple assembly descriptors.

The first one puts the  output  under a staging area like 'target/staging'.
you can copy more files into that staging area using antrun, dependency plugins

Your second assembly descriptor then work off the staging area.

You will need to  run multiple executions of the assembly plugin per descriptor

-D

On Thu, Aug 28, 2008 at 4:06 AM, Peter Horlock
<pe...@googlemail.com> wrote:
> Hi Dan, thanks for your fast reply.
>
> However - could you please a bit more specific of how this can be done?
> E.g.
> a) Where can I add the multiple assembly executions - in the pom or in the
> assembly descriptor?
> b) what''s a "staging area"?
>
> Thanks,
>
> Peter
>

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


Re: Assembly Plugin - Archive in Archive

Posted by Peter Horlock <pe...@googlemail.com>.
Hi Dan, thanks for your fast reply.

However - could you please a bit more specific of how this can be done?
E.g.
a) Where can I add the multiple assembly executions - in the pom or in the
assembly descriptor?
b) what''s a "staging area"?

Thanks,

Peter

Re: Assembly Plugin - Archive in Archive

Posted by Dan Tran <da...@gmail.com>.
run multiple assembly executions, use maven-dependency-plugin to
prepare staging area as needed.

-D

On Thu, Aug 28, 2008 at 3:58 AM, Peter Horlock
<pe...@googlemail.com> wrote:
> Hi,
>
> I am successfully using the Assembly Plugin to create an archive containing
> extra content for a release.
> However, now I would like to create another archive containing this archive,
> plus the generated war file, plus a readme file for the client.
>
> Any idea how that can be done?
>
> Thanks in advance,
>
> Peter
>

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