Hello Mark,

you may put the property in a profile of your settings.xml and just call „mvn 
-P releases deploy“ given the profile is called releases.

Best Regards 
Mirko Friedenhagen
— 
Sent from my mobile 

Am 03.11.18 um 17:55 schrieb Mark Raynsford

> Hello.
> 
> If I want to deploy to a different repository, I can use the
> http://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html#altDeploymentRepository
> property:
> 
>   $ mvn deploy 
> -DaltDeploymentRepository=releases::default::https://packages.example.com/repository/releases
> 
> This is cumbersome, because I've already provided that URI and layout
> in the ~/.m2/settings.xml file. I'd much rather do:
> 
>   $ mvn deploy -DaltDeploymentRepository=releases
> 
> Is there some way I can achieve this without putting anything in the
> project's pom.xml?
> 
> -- 
> Mark Raynsford | http://www.io7m.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to