From 4abd990d9cde52b1f3ff9d74854a35bc17122824 Mon Sep 17 00:00:00 2001 From: Jason Nichols Date: Fri, 29 Mar 2024 16:56:59 -0400 Subject: [PATCH] Update to latest Maven plugins, tweak the build process to avoid errors --- .github/workflows/maven.yml | 7 ++++++- pom.xml | 8 ++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 55906a6b..d8fc5f2b 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -31,6 +31,11 @@ jobs: gpg --list-secret-keys --keyid-format LONG env: OSSRH_GPG_SECRET_KEY: ${{ secrets.OSSRH_GPG_SECRET_KEY }} + - name: Local Repo Install + run: mvn -B clean install -P -uberjar -DskipTests # No uber jars just yet. + env: + OSSRH_GPG_KEYNAME: ${{ secrets.OSSRH_GPG_KEYNAME }} + OSSRH_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_PASSPHRASE }} - name: Verify and Sign Jars run: mvn -B clean verify -P -uberjar # No uber jars just yet. env: @@ -45,7 +50,7 @@ jobs: MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} - name: Assembly - run: mvn clean package install -DskipTests && mvn -B --projects magpie-cli assembly:single -DskipTests + run: mvn clean package -DskipTests && mvn -B --projects magpie-cli assembly:single -DskipTests - name: Upload zip uses: actions/upload-artifact@v2 with: diff --git a/pom.xml b/pom.xml index 696b3728..f6e4f62d 100644 --- a/pom.xml +++ b/pom.xml @@ -117,7 +117,7 @@ org.apache.maven.plugins maven-source-plugin - 2.2.1 + 3.3.0 attach-sources @@ -130,7 +130,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 2.9.1 + 3.6.3 attach-javadocs @@ -143,7 +143,7 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.7 + 1.6.13 true ossrh @@ -154,7 +154,7 @@ org.apache.maven.plugins maven-release-plugin - 3.0.0-M1 + 3.0.1 ossrh,!uberjar