From 3ea43cbaadd8da58ed70799f40c189e1c8426ab9 Mon Sep 17 00:00:00 2001 From: Maxwell Anipah Date: Fri, 17 Mar 2023 10:17:22 +0100 Subject: [PATCH] remove maven debug add profile back fix nexus plugin settings fix nexus url --- .github/workflows/release.yml | 4 +--- pom.xml | 27 ++++++++++++++++----------- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 29f6b4f..2e62f66 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,6 @@ jobs: runs-on: ubuntu-latest permissions: contents: write - pull-requests: write steps: - name: Validate branch if: ${{ github.ref != 'refs/heads/master' }} @@ -22,7 +21,7 @@ jobs: with: distribution: 'corretto' java-version: '8' - server-id: sonatype-nexus-staging + server-id: ossrh server-username: ${{ secrets.OSSRH_USERNAME }} server-password: ${{ secrets.OSSRH_PASSWORD }} @@ -34,7 +33,6 @@ jobs: - name: Maven release run: | mvn \ - -e \ -B \ -P release \ release:clean \ diff --git a/pom.xml b/pom.xml index dd10d84..cb68e17 100644 --- a/pom.xml +++ b/pom.xml @@ -47,20 +47,13 @@ UTF-8 1.8 1.8 - sonatype-nexus-staging - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - sonatype-nexus-snapshots - Sonatype Nexus Snapshots - ${sonatypeOssDistMgmtSnapshotsUrl} - - ${ossrh.id} + ossrh Nexus Release Repository - ${ossrh.url} + https://oss.sonatype.org/service/local/staging/deploy/maven2/ @@ -119,6 +112,9 @@ org.apache.maven.plugins maven-release-plugin 2.5.3 + + deploy + org.apache.maven.plugins @@ -197,13 +193,22 @@ + + org.apache.maven.plugins + maven-deploy-plugin + 2.7 + + true + + org.sonatype.plugins nexus-staging-maven-plugin 1.6.8 + true - ${ossrh.id} - ${ossrh.url} + ossrh + https://oss.sonatype.org/ true