You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Richard Sand <rs...@idfconnect.com> on 2013/09/03 23:54:15 UTC

using a plugin twice?

I've a feeling I know the answer at this point, but:

Is it possible to use the same plugin twice in the same maven session? E.g.
if I want to use maven-assembly-plugin to create two different assemblies?
Or if I wanted the maven-shade-plugin to create a zip and a tarball but with
slightly different contents? Or is this another case of "just use two poms"?

Best regards,

Richard



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


Re: using a plugin twice?

Posted by Roger Brechbühl <ro...@gmail.com>.
And in case of the assembly-plugin you could configure multiple descriptors
to generate different artifacts with one pom.xml.....


2013/9/4 Richard Sand <rs...@idfconnect.com>

> Ah, too easy! I was hoping for a more difficult solution :-)
>
>
> -----Original Message-----
> From: Stephen Connolly [mailto:stephen.alan.connolly@gmail.com]
> Sent: Tuesday, September 03, 2013 6:09 PM
> To: Maven Users List
> Subject: Re: using a plugin twice?
>
> Just add the second execution with a different id
>
> On Tuesday, 3 September 2013, Richard Sand wrote:
>
> > I've a feeling I know the answer at this point, but:
> >
> > Is it possible to use the same plugin twice in the same maven session?
> E.g.
> > if I want to use maven-assembly-plugin to create two different
> assemblies?
> > Or if I wanted the maven-shade-plugin to create a zip and a tarball
> > but with slightly different contents? Or is this another case of "just
> > use two poms"?
> >
> > Best regards,
> >
> > Richard
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > <javascript:;> For additional commands, e-mail:
> > users-help@maven.apache.org<javascript:;>
> >
> >
>
> --
> Sent from my phone
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

RE: using a plugin twice?

Posted by Richard Sand <rs...@idfconnect.com>.
Ah, too easy! I was hoping for a more difficult solution :-)


-----Original Message-----
From: Stephen Connolly [mailto:stephen.alan.connolly@gmail.com] 
Sent: Tuesday, September 03, 2013 6:09 PM
To: Maven Users List
Subject: Re: using a plugin twice?

Just add the second execution with a different id

On Tuesday, 3 September 2013, Richard Sand wrote:

> I've a feeling I know the answer at this point, but:
>
> Is it possible to use the same plugin twice in the same maven session?
E.g.
> if I want to use maven-assembly-plugin to create two different assemblies?
> Or if I wanted the maven-shade-plugin to create a zip and a tarball 
> but with slightly different contents? Or is this another case of "just 
> use two poms"?
>
> Best regards,
>
> Richard
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org 
> <javascript:;> For additional commands, e-mail: 
> users-help@maven.apache.org<javascript:;>
>
>

--
Sent from my phone



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


Re: using a plugin twice?

Posted by Stephen Connolly <st...@gmail.com>.
Just add the second execution with a different id

On Tuesday, 3 September 2013, Richard Sand wrote:

> I've a feeling I know the answer at this point, but:
>
> Is it possible to use the same plugin twice in the same maven session? E.g.
> if I want to use maven-assembly-plugin to create two different assemblies?
> Or if I wanted the maven-shade-plugin to create a zip and a tarball but
> with
> slightly different contents? Or is this another case of "just use two
> poms"?
>
> Best regards,
>
> Richard
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org <javascript:;>
> For additional commands, e-mail: users-help@maven.apache.org<javascript:;>
>
>

-- 
Sent from my phone