Skip to content

Commit f8bfbc8

Browse files
committed
Update snapshot access to use Central Portal
1 parent cb7ce63 commit f8bfbc8

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

.github/workflows/main.yml

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

pom.xml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,15 @@ JSON Schema (http://tools.ietf.org/html/draft-zyp-json-schema-03) version 3 gene
6565
</dependency>
6666
</dependencies>
6767

68-
<!-- Alas, need to include snapshot reference since otherwise can not find
69-
snapshot of parent... -->
68+
<!-- Need to include snapshot reference to find snapshot of parent -->
7069
<repositories>
70+
<!-- 13-May-2025, tatu: now access snapshots via Central Portal -->
7171
<repository>
72-
<id>sonatype-nexus-snapshots</id>
73-
<name>Sonatype Nexus Snapshots</name>
74-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
75-
<releases>
76-
<enabled>false</enabled>
77-
</releases>
78-
<snapshots>
79-
<enabled>true</enabled>
80-
</snapshots>
72+
<id>central-snapshots</id>
73+
<name>Sonatype Central Portal (snapshots)</name>
74+
<url>https://central.sonatype.com/repository/maven-snapshots</url>
75+
<releases><enabled>false</enabled></releases>
76+
<snapshots><enabled>true</enabled></snapshots>
8177
</repository>
8278
</repositories>
8379
</project>

0 commit comments

Comments
 (0)