maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Kolotyluk <>
Subject Re: Updated documentation for Central Repository
Date Wed, 26 Mar 2014 04:29:02 GMT

On 3/25/2014 4:42 PM, Manfred Moser wrote:
> Hello everyone!
> We have updated the documentation for publishing artifacts to the Central Repository
via the free Sonatype Open Source Repository Hosting (OSSRH) and added more documents about
status, getting help and more and put it all together on a brand new website.
> Please look at the announcement blog post at
> and the actual new website at
> Specifically the instructions for Apache Maven are at
> but I would like to encourage you all to have a look at the rest of the site as well.
> The Maven docs details usage of things like the Nexus Staging Maven Plugin for command
line based release (no more logging into the UI) and a whole lot of other things.
> We are hoping you find this all useful and get some great feedback and recommendations
for improvements from you.
> Looking forward to continue to improve the site going forward.
> Jason, Joel, Manfred and others
> Sonatype Ops Team - @sonatype_ops
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:
In the Maven section, I was hoping to see some discussion like...

*Local Repository Manager vs Sonatype OSS*

You may be in a situation that you have a local or corporate Repository 
Manager that you use as part of your daily software development process, 
and you only want to use the Sonatype OSS Repository Manager on 
occasion. You can can configure this in your settings.xml like this:




Normally when you run deploy, your artifacts will go to 'local-nexus' 
(or whatever you configure), but when you want to use the Sonatype OSS 
repository, you can just use

   mvn deploy -P!local-repository

and Maven will deploy according to the <distributionManagement> defined in


The benefit of this method is that you do not have to put any local or 
unnecessary corporate information in the pom.xml you are distributing 
with your project.

Warning: some older versions of the maven-deploy-plugin do not support 
this properly, so use the latest version, for example, in your pom.xml:

             Bugs in older versions prevent altReleaseDeploymentRepository
             and altSnapshotDeploymentRepository from working correctly
     . . .

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message