-
Notifications
You must be signed in to change notification settings - Fork 98
/
Copy pathmaven-release.txt
16 lines (10 loc) · 1.25 KB
/
maven-release.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Set ANDROID_HOME env variable, then mvn clean package
mvn gpg:sign-and-deploy-file -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=sonatype-nexus-staging -Dfile=target/easycamera-0.0.1.aar -DpomFile=pom.xml -Dclassifier=aar -Dgpg.passphrase=PASSPHRASE
mvn gpg:sign-and-deploy-file -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=sonatype-nexus-staging -Dfile=target/easycamera-0.0.1.aar -DpomFile=pom.xml -Dgpg.passphrase=PASSPHRASE
mvn gpg:sign-and-deploy-file -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=sonatype-nexus-staging -Dfile=target/easycamera-0.0.1-sources.jar -Dclassifier=sources -DpomFile=pom.xml -Dgpg.passphrase=PASSPHRASE
mvn gpg:sign-and-deploy-file -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=sonatype-nexus-staging -Dfile=target/easycamera-0.0.1-javadoc.jar -Dclassifier=javadoc -DpomFile=pom.xml -Dgpg.passphrase=PASSPHRASE
- Go to: https://oss.sonatype.org/
- Look for a new repo in "Staging repositories" (at the bottom)
- Close it
- Release it
(more at: https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide#SonatypeOSSMavenRepositoryUsageGuide-7b.StageExistingArtifacts)