Skip to content

Commit 718817a

Browse files
author
Paul Jones
committed
Add target for promoting staging to releases
1 parent 4621372 commit 718817a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,16 @@ stage-maven-bundle: maven-bundle
9090
-B \
9191
-Dnexus.description="Public release of $$VERSION" \
9292
)
93+
94+
promote-maven-bundle:
95+
( \
96+
NEXUS_USERNAME=`cat $(GNUPG_PATH)/../nexus/username`; \
97+
NEXUS_PASSWORD=`cat $(GNUPG_PATH)/../nexus/password`; \
98+
mvn org.sonatype.plugins:nexus-maven-plugin:staging-promote \
99+
-Dnexus.url=http://oss.sonatype.org \
100+
-Dnexus.username=$$NEXUS_USERNAME \
101+
-Dnexus.password=$$NEXUS_PASSWORD \
102+
-Dnexus.promote.autoSelectOverride=true \
103+
-DtargetRepositoryId=releases \
104+
-B \
105+
)

0 commit comments

Comments
 (0)