Skip to content

Commit 75426cb

Browse files
GH-236 aligning the GH action to the use of central-publishing-maven-plugin plugin (#238)
As of June 30, 2025 Sonatype OSSRH has reached end of life and has been shut down. All OSSRH namespaces have been migrated to Central Publisher Portal. Hence migrating to `central.sonatype.com` see #237 and now with this aligning the GH actions with the above change
1 parent 9eff243 commit 75426cb

2 files changed

Lines changed: 8 additions & 10 deletions

File tree

‎.github/workflows/maven-release.yml‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ jobs:
194194
distribution: 'temurin'
195195
java-version: 11
196196
cache: maven
197-
server-id: ossrh
198197
server-username: MAVEN_USERNAME
199198
server-password: MAVEN_CENTRAL_TOKEN
200199
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
@@ -209,21 +208,21 @@ jobs:
209208
echo $GPG_OWNERTRUST | base64 --decode | gpg --import-ownertrust --no-tty --batch --yes
210209
211210
- name: AEM6.5 Build
212-
run: mvn clean deploy -DskipRemoteStaging=true -Dmaven.test.skip -Paem65deps,aem65,release
211+
run: mvn clean deploy -DskipTests -Paem65deps,aem65,release
213212
env:
214213
MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
215214
MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_PASSWORD }}
216215
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
217216

218217
- name: AEMaaCS Build
219-
run: mvn clean deploy -DskipRemoteStaging=true -PaemaacsDeps,aemaacs,release,attach-javadoc,attach-source
218+
run: mvn clean deploy -DskipTests -PaemaacsDeps,aemaacs,release,attach-javadoc,attach-source
220219
env:
221220
MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
222221
MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_PASSWORD }}
223222
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
224223

225-
- name: Deploy to Central
226-
run: mvn nexus-staging:deploy-staged -DautoReleaseAfterClose=true
224+
- name: Main Build
225+
run: mvn clean deploy -DskipTests
227226
env:
228227
MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
229228
MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_PASSWORD }}

‎.github/workflows/maven-snapshot.yml‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,28 +28,27 @@ jobs:
2828
distribution: 'temurin'
2929
java-version: 11
3030
cache: maven
31-
server-id: ossrh
3231
server-username: MAVEN_USERNAME
3332
server-password: MAVEN_CENTRAL_TOKEN
3433
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
3534
gpg-passphrase: MAVEN_GPG_PASSPHRASE
3635

3736
- name: AEM6.5 Build
38-
run: mvn clean deploy -DskipRemoteStaging=true -Dmaven.test.skip -Paem65deps,aem65,release
37+
run: mvn clean deploy -DskipTests -Paem65deps,aem65,release
3938
env:
4039
MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
4140
MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_PASSWORD }}
4241
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
4342

4443
- name: AEMaaCS Build
45-
run: mvn clean deploy -DskipRemoteStaging=true -PaemaacsDeps,aemaacs,release,attach-javadoc,attach-source
44+
run: mvn clean deploy -PaemaacsDeps,aemaacs,release,attach-javadoc,attach-source
4645
env:
4746
MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
4847
MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_PASSWORD }}
4948
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
5049

51-
- name: Deploy to Central
52-
run: mvn nexus-staging:deploy-staged -DautoReleaseAfterClose=true
50+
- name: Main Build
51+
run: mvn clean deploy -DskipTests
5352
env:
5453
MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
5554
MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_PASSWORD }}

0 commit comments

Comments
 (0)