Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change pom to use new Sonatype release method #5

Open
steveswinsburg opened this issue Sep 9, 2014 · 3 comments
Open

Change pom to use new Sonatype release method #5

steveswinsburg opened this issue Sep 9, 2014 · 3 comments

Comments

@steveswinsburg
Copy link
Owner

Currently to release I just do a mvn release:clean release:prepare release:perform deploy to tag to github and release to sonatype. Then need to go to oss.sonatype.org, find the staging repository and manually release the artifact. This has changed a bit and can all be done via Maven now:
http://central.sonatype.org/pages/apache-maven.html

Just need a pom update.

FYI this is the old guide:
https://docs.sonatype.org/pages/viewpage.action?pageId=13369404#SonatypeOSSMavenRepositoryUsageGuide-7a.3.StageaRelease

@marcelstoer
Copy link
Contributor

I guess you primarily refer to http://central.sonatype.org/pages/apache-maven.html#nexus-staging-maven-plugin-for-deployment-and-release. I have never tried myself but I'm not sure if that plugin completely covers the features the Maven release plugin offers. Does it also do the version update in the POM? Does it tag the repository on GitHub? The Sonatype docs IMO aren't very clear about that and I read it as one should actually use mvn release:clean release:prepare release:perform nexus-staging:release if we want to keep the Maven release goodies and just do away with the hassle of manually releasing through oss.sonatype.org.

@steveswinsburg
Copy link
Owner Author

IIRC you still need to use the maven release plugin to get the version rollover and the source tag, its jsut the manual step of releasing through oss.sonatype.org I wanted to eliminate :)

@marcelstoer
Copy link
Contributor

I don't remember why I didn't a link to my tutorial at http://frightanic.com/software-development/release-to-maven-central/ because it covers that plugin as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants