Overriding distributionManagement Repositories
Hello Maven Users, I'm trying to migrate my users to a new nexus repository on a different domain. I'm trying to avoid having to tell all of the developers to change their distributionManagement/repository and /snapshotRepository values in their pom files or to upgrade to new parent poms all at once. They can do it over time, but we support hundreds of developers on many projects. I can't seem to find a way to override these values in settings.xml. I can easily change where the users fetch artifacts from, but not where they deploy or release to. (btw - most of my users are still using maven 2). Thanks for any advice you may have. Rick - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Overriding distributionManagement Repositories
You could create a profile in your settings.xml which is always active and sets the property altDeploymentRepository[2] to your new value. [1] http://maven.apache.org/settings.html#Active_Profiles [2] http://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html#altDeploymentRepository Hth, Nick Stolwijk ~Senior Java Developer~ iPROFS Wagenweg 208 2012 NM Haarlem T +31 23 547 6369 F +31 23 547 6370 I www.iprofs.nl On Thu, Jun 23, 2011 at 3:44 PM, Rick Mangi rick.ma...@mtvn.com wrote: Hello Maven Users, I'm trying to migrate my users to a new nexus repository on a different domain. I'm trying to avoid having to tell all of the developers to change their distributionManagement/repository and /snapshotRepository values in their pom files or to upgrade to new parent poms all at once. They can do it over time, but we support hundreds of developers on many projects. I can't seem to find a way to override these values in settings.xml. I can easily change where the users fetch artifacts from, but not where they deploy or release to. (btw - most of my users are still using maven 2). Thanks for any advice you may have. Rick - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Overriding distributionManagement Repositories
On Thu, Jun 23, 2011 at 9:44 AM, Rick Mangi rick.ma...@mtvn.com wrote: I'm trying to migrate my users to a new nexus repository on a different domain. I'm trying to avoid having to tell all of the developers to change their distributionManagement/repository and /snapshotRepository values in their pom files or to upgrade to new parent poms all at once. They can do it over time, but we support hundreds of developers on many projects. Consider introducing an organization level parent pom and set distributionManagement there, rather than having developers set it in all the projects. It's still a pain to get them to update to the latest parent, but it's less typing. :) -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Overriding distributionManagement Repositories
Oh! Great, looks like that was added quite a while ago, I've never seen it. Thanks Nick On 6/23/11 11:05 AM, Nick Stolwijk nick.stolw...@gmail.com wrote: You could create a profile in your settings.xml which is always active and sets the property altDeploymentRepository[2] to your new value. [1] http://maven.apache.org/settings.html#Active_Profiles [2] http://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html#altDeploy mentRepository Hth, Nick Stolwijk ~Senior Java Developer~ iPROFS Wagenweg 208 2012 NM Haarlem T +31 23 547 6369 F +31 23 547 6370 I www.iprofs.nl On Thu, Jun 23, 2011 at 3:44 PM, Rick Mangi rick.ma...@mtvn.com wrote: Hello Maven Users, I'm trying to migrate my users to a new nexus repository on a different domain. I'm trying to avoid having to tell all of the developers to change their distributionManagement/repository and /snapshotRepository values in their pom files or to upgrade to new parent poms all at once. They can do it over time, but we support hundreds of developers on many projects. I can't seem to find a way to override these values in settings.xml. I can easily change where the users fetch artifacts from, but not where they deploy or release to. (btw - most of my users are still using maven 2). Thanks for any advice you may have. Rick - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org