Hi Manfred,

Thank you very much to all involved in updating this valuable documentation!

> 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 use the nexus-staging-maven-plugin's option "autoReleaseAfterClose" set
to true, which is an excellent feature. We simply didn't know about it for
quite some time [1]. Perhaps that excellent option could also be mentioned
somewhere? We have found it simpler than needing to run the
"nexus-staging:release" goal manually every time.

Regards,
Curtis

[1] https://issues.sonatype.org/browse/NEXUS-6280


On Wed, Mar 26, 2014 at 10:47 AM, Manfred Moser <[email protected]>wrote:

> I would always deploy to OSSRH and just proxy it back in. However opinions
> differ and I will therefore add these instructions on a new page about
> further tips and tricks for Maven users.
>
> Thanks for the contribution.
>
> manfred
>
> Eric Kolotyluk wrote on 25.03.2014 21:29:
>
> >
> > 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
> >>
> >> http://blog.sonatype.com/2014/03/a-home-for-the-central-repository/
> >>
> >> and the actual new website at http://central.sonatype.org/
> >>
> >> Specifically the instructions for Apache Maven are at
> >>
> >> http://central.sonatype.org/pages/apache-maven.html
> >>
> >> 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: [email protected]
> >> For additional commands, e-mail: [email protected]
> >>
> > 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:
> >
> >   <profile>
> >     <id>local-repository</id>
> >     <properties>
> > <altReleaseDeploymentRepository>local-nexus::default::
> http://localhost:8081/nexus/content/repositories/releases/
> </altReleaseDeploymentRepository>
> > <altSnapshotDeploymentRepository>local-nexus::default::
> http://localhost:8081/nexus/content/repositories/snapshots/
> </altSnapshotDeploymentRepository>
> >     </properties>
> > </profile>
> >
> >   <activeProfiles>
> > <activeProfile>local-repository</activeProfile>
> >   </activeProfiles>
> >
> >   <servers>
> >     <server>
> >       <id>local-nexus</id>
> >       <username>deployment</username>
> >       <password>/secret/</password>
> >     </server>
> >     <server>
> >       <id>sonatype-nexus-snapshots</id>
> >       <username>/username/</username>
> >       <password>/secret/</password>
> >     </server>
> >     <server>
> >       <id>sonatype-nexus-staging</id>
> >       <username>/username/</username>
> >       <password>/secret/</password>
> >     </server>
> >   </servers>
> >
> > 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
> >
> >   <parent>
> >     <groupId>org.sonatype.oss</groupId>
> >     <artifactId>oss-parent</artifactId>
> >     <version>7</version>
> >   </parent>
> >
> > 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:
> >
> >   <build>
> >     <pluginManagement>
> >       <plugins>
> >         <plugin>
> >           <!--
> >             Bugs in older versions prevent altReleaseDeploymentRepository
> >             and altSnapshotDeploymentRepository from working correctly
> > https://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html
> >            -->
> > <artifactId>maven-deploy-plugin</artifactId>
> >           <version>2.8.1</version>
> >         </plugin>
> >     </pluginManagement>
> >     . . .
> >   </build>
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to