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

I need to run 2 profiles to deploy to 2 seperate Nexus repositories

Hi,

How can I get Maven to run 2 separate Profiles to deploy the build artifacts
to 2 separate Nexus repos?
I have tried the following but only the second profile deploys to its Nexus
repo.

mvn clean deploy -P nexus-one,nexus-two

Note: the settings file passed doesn't contain any profiles.





--
View this message in context: http://maven.40175.n5.nabble.com/I-need-to-run-2-profiles-to-deploy-to-2-seperate-Nexus-repositories-tp5751508.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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


Re: I need to run 2 profiles to deploy to 2 seperate Nexus repositories

Posted by Tonio Caputo <to...@exeo.com.ar>.
A kind of dummy idea,

Why not copy the deployed artifacts using wagon plugin from repository one
to repository two ?

Not sure if wagon plugin works for nexus, but it might.

Hope it helps
somehow

tonio




On Fri, Mar 22, 2013 at 11:25 AM, Wayne Fay <wa...@gmail.com> wrote:

> > How can I get Maven to run 2 separate Profiles to deploy the build
> artifacts
> > to 2 separate Nexus repos?
> > I have tried the following but only the second profile deploys to its
> Nexus
> > repo.
>
> Instead of this approach, I suggest asking how to achieve your end
> goal on the Nexus lists. Surely there are better ways to get this done
> using Nexus-specific functionality.
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: I need to run 2 profiles to deploy to 2 seperate Nexus repositories

Posted by Wayne Fay <wa...@gmail.com>.
> How can I get Maven to run 2 separate Profiles to deploy the build artifacts
> to 2 separate Nexus repos?
> I have tried the following but only the second profile deploys to its Nexus
> repo.

Instead of this approach, I suggest asking how to achieve your end
goal on the Nexus lists. Surely there are better ways to get this done
using Nexus-specific functionality.

Wayne

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