Skip to content

Commit f8f4cdb

Browse files
committed
Fix to use Central Portal repo for publishing
1 parent 0ea3bae commit f8f4cdb

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
distribution: 'temurin'
3838
java-version: ${{ matrix.java_version }}
3939
cache: 'maven'
40-
server-id: sonatype-nexus-snapshots
40+
server-id: central-snapshots
4141
server-username: CI_DEPLOY_USERNAME
4242
server-password: CI_DEPLOY_PASSWORD
4343
# See https://github.com/actions/setup-java/blob/v2/docs/advanced-usage.md#Publishing-using-Apache-Maven
@@ -56,8 +56,8 @@ jobs:
5656
- name: Deploy snapshot
5757
if: ${{ github.event_name != 'pull_request' && matrix.release_build && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT') }}
5858
env:
59-
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
60-
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}
59+
CI_DEPLOY_USERNAME: ${{ secrets.CENTRAL_DEPLOY_USERNAME }}
60+
CI_DEPLOY_PASSWORD: ${{ secrets.CENTRAL_DEPLOY_PASSWORD }}
6161
# MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
6262
run: ./mvnw -B -q -ff -DskipTests -ntp source:jar deploy
6363
- name: Generate code coverage

pom.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,11 @@ com.fasterxml.jackson.core.*;version=${project.version}
6363
<!-- Alas, need to include snapshot reference since otherwise can not find
6464
snapshot of parent... -->
6565
<repositories>
66+
<!-- 26-May-2025, tatu: Using Sonatype Central Portal, will need this -->
6667
<repository>
67-
<id>sonatype-nexus-snapshots</id>
68-
<name>Sonatype Nexus Snapshots</name>
69-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
68+
<id>central-snapshots</id>
69+
<name>Sonatype Central Portal (snapshots)</name>
70+
<url>https://central.sonatype.com/repository/maven-snapshots</url>
7071
<releases><enabled>false</enabled></releases>
7172
<snapshots><enabled>true</enabled></snapshots>
7273
</repository>

0 commit comments

Comments
 (0)