Skip to content

Commit e16c19a

Browse files
committed
Update snapshot access to use Central Portal
1 parent f8aadd7 commit e16c19a

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
distribution: 'temurin'
2828
java-version: ${{ matrix.java_version }}
2929
cache: 'maven'
30-
server-id: sonatype-nexus-snapshots
30+
server-id: central-snapshots
3131
server-username: CI_DEPLOY_USERNAME
3232
server-password: CI_DEPLOY_PASSWORD
3333
# See https://github.com/actions/setup-java/blob/v2/docs/advanced-usage.md#Publishing-using-Apache-Maven
@@ -41,7 +41,7 @@ jobs:
4141
- name: Deploy snapshot
4242
if: ${{ github.event_name != 'pull_request' && matrix.java_version == '11' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT') }}
4343
env:
44-
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
45-
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}
44+
CI_DEPLOY_USERNAME: ${{ secrets.CENTRAL_DEPLOY_USERNAME }}
45+
CI_DEPLOY_PASSWORD: ${{ secrets.CENTRAL_DEPLOY_PASSWORD }}
4646
# MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
4747
run: ./mvnw -B -q -ff -DskipTests -ntp source:jar deploy

pom.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,17 +136,17 @@ https://stackoverflow.com/questions/44088493/jersey-stopped-working-with-injecti
136136
</dependency>
137137
</dependencies>
138138

139-
<!-- Alas, need to include snapshot reference since otherwise can not find
140-
snapshot of parent... -->
139+
<!-- Need to include snapshot reference to find snapshot of parent -->
141140
<repositories>
141+
<!-- 13-May-2025, tatu: now access snapshots via Central Portal -->
142142
<repository>
143-
<id>sonatype-nexus-snapshots</id>
144-
<name>Sonatype Nexus Snapshots</name>
145-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
143+
<id>central-snapshots</id>
144+
<name>Sonatype Central Portal (snapshots)</name>
145+
<url>https://central.sonatype.com/repository/maven-snapshots</url>
146146
<releases><enabled>false</enabled></releases>
147147
<snapshots><enabled>true</enabled></snapshots>
148148
</repository>
149-
</repositories>
149+
</repositories>
150150

151151
<build>
152152
<pluginManagement>

0 commit comments

Comments
 (0)