You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Victor Calvello <vc...@gmail.com> on 2010/08/26 22:02:58 UTC

How to deploy secondary artifacts using deploy plugin

Hi guys,

I'm trying to deploy to a release nexus repository 2 artifacts with the same
GAV but different classifier and packaging using the maven-deploy-plugin.
The first one goes well. The problem is that fails when wants to upload or
generate the pom for the second artifact because the first artifact uploaded
already created it.

Is there a way to add secondary artifacts using this plugin?

Thanks,
Vic

Re: How to deploy secondary artifacts using deploy plugin

Posted by Victor Calvello <vc...@gmail.com>.
Thanks Kalle, worked like a charm!

On Thu, Aug 26, 2010 at 5:20 PM, Kalle Korhonen
<ka...@gmail.com>wrote:

> You need to tell Maven about the additional artifacts. Attach them to
> your module with buildhelper plugin, specifying a different
> type/classifier. See
> http://mojo.codehaus.org/build-helper-maven-plugin/usage.html
>
> Kalle
>
>
> On Thu, Aug 26, 2010 at 1:02 PM, Victor Calvello <vc...@gmail.com>
> wrote:
> > Hi guys,
> >
> > I'm trying to deploy to a release nexus repository 2 artifacts with the
> same
> > GAV but different classifier and packaging using the maven-deploy-plugin.
> > The first one goes well. The problem is that fails when wants to upload
> or
> > generate the pom for the second artifact because the first artifact
> uploaded
> > already created it.
> >
> > Is there a way to add secondary artifacts using this plugin?
> >
> > Thanks,
> > Vic
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: How to deploy secondary artifacts using deploy plugin

Posted by Kalle Korhonen <ka...@gmail.com>.
You need to tell Maven about the additional artifacts. Attach them to
your module with buildhelper plugin, specifying a different
type/classifier. See
http://mojo.codehaus.org/build-helper-maven-plugin/usage.html

Kalle


On Thu, Aug 26, 2010 at 1:02 PM, Victor Calvello <vc...@gmail.com> wrote:
> Hi guys,
>
> I'm trying to deploy to a release nexus repository 2 artifacts with the same
> GAV but different classifier and packaging using the maven-deploy-plugin.
> The first one goes well. The problem is that fails when wants to upload or
> generate the pom for the second artifact because the first artifact uploaded
> already created it.
>
> Is there a way to add secondary artifacts using this plugin?
>
> Thanks,
> Vic
>

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