Skip to content

Commit c079159

Browse files
committed
Update snapshot access to Central Portal
1 parent 55f4ec6 commit c079159

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
distribution: 'temurin'
3131
java-version: ${{ matrix.java_version }}
3232
cache: 'maven'
33-
server-id: sonatype-nexus-snapshots
33+
server-id: central-snapshots
3434
server-username: CI_DEPLOY_USERNAME
3535
server-password: CI_DEPLOY_PASSWORD
3636
# See https://github.com/actions/setup-java/blob/v2/docs/advanced-usage.md#Publishing-using-Apache-Maven
@@ -44,8 +44,8 @@ jobs:
4444
- name: Deploy snapshot
4545
if: ${{ github.event_name != 'pull_request' && matrix.java_version == '8' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT') }}
4646
env:
47-
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
48-
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}
47+
CI_DEPLOY_USERNAME: ${{ secrets.CENTRAL_DEPLOY_USERNAME }}
48+
CI_DEPLOY_PASSWORD: ${{ secrets.CENTRAL_DEPLOY_PASSWORD }}
4949
# MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
5050
run: ./mvnw -B -q -ff -DskipTests -ntp source:jar deploy
5151
- name: Generate code coverage

pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,13 @@ alternative support for serializing POJOs as XML and deserializing XML as pojos.
198198
</plugins>
199199
</build>
200200

201-
<!-- Alas, need to include snapshot reference since otherwise can not find
202-
snapshot of parent... -->
201+
<!-- Need to include snapshot reference to find snapshot of parent -->
203202
<repositories>
203+
<!-- 13-May-2025, tatu: now access snapshots via Central Portal -->
204204
<repository>
205-
<id>sonatype-nexus-snapshots</id>
206-
<name>Sonatype Nexus Snapshots</name>
207-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
205+
<id>central-snapshots</id>
206+
<name>Sonatype Central Portal (snapshots)</name>
207+
<url>https://central.sonatype.com/repository/maven-snapshots</url>
208208
<releases><enabled>false</enabled></releases>
209209
<snapshots><enabled>true</enabled></snapshots>
210210
</repository>

0 commit comments

Comments
 (0)