Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[developers] Releasing jars to maven central

myleshorton edited this page Sep 18, 2013 · 2 revisions

Lantern uses a special script and the nexus staging maven plugin to release to central. With ./bin/mvnrelease.bash on your path, you can do the following:

mvnrelease.bash gpg-password git-username git-password

in the same directory that has the pom.xml of the project you want to release. That will automatically supply your usernames and passwords when the various called subroutines require them.

Note that the mvnrelease.bash script also looks for releasePrepare.exp and releasePerform.exp in the same directory. Those files are also found in bin, so one easy approach is to copy all three files to somewhere on your path like /usr/local/bin

To do the above manually, simply run:

mvn release:clean
mvn release:prepare
mvn release:perform
cd target/checkout/ 
mvn nexus-staging:release

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /