Skip to content

Commit

Permalink
notes about manual publishing via maven central portal
Browse files Browse the repository at this point in the history
dennisvang committed Oct 25, 2024
1 parent 6e773b5 commit c33b7f4
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
@@ -30,6 +30,7 @@ jobs:
gpg-passphrase: MAVEN_GPG_PASSPHRASE

- name: Publish to Maven Central Portal
# if autoPublish is false (see pom.xml), we need to publish manually via https://central.sonatype.com/publishing/deployments
run: mvn --batch-mode deploy
env:
MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
2 changes: 2 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -122,6 +122,8 @@
<extensions>true</extensions>
<configuration>
<publishingServerId>central</publishingServerId>
<!-- visit https://central.sonatype.com/publishing/deployments to publish manually -->
<!-- also visit that site to debug validation issues -->
<autoPublish>false</autoPublish>
</configuration>
</plugin>

0 comments on commit c33b7f4

Please sign in to comment.