From e540006b1a92bb4d019a9e8ce8f7fffa0b29d10a Mon Sep 17 00:00:00 2001 From: Piers Williams Date: Mon, 4 Aug 2025 10:23:42 +0100 Subject: [PATCH 1/2] Skip tests in github profile. They were run in the build phase --- pom.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pom.xml b/pom.xml index 3e65b19..df9b257 100644 --- a/pom.xml +++ b/pom.xml @@ -186,6 +186,14 @@ + + org.apache.maven.plugins + maven-surefire-plugin + 3.5.3 + + true + + From a0bb2333eb8bc82dcdd043f02a6797ebae29893e Mon Sep 17 00:00:00 2001 From: Piers Williams Date: Mon, 4 Aug 2025 11:18:16 +0100 Subject: [PATCH 2/2] Use new publishing plugin to publish to github packages --- .github/workflows/maven.yml | 4 ++-- pom.xml | 28 +++++++++++++++------------- settings.xml | 14 -------------- 3 files changed, 17 insertions(+), 29 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 816005d..909aa48 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -27,11 +27,11 @@ jobs: run: mvn -B install --file pom.xml - name: Publish to GitHub Packages Apache Maven if: contains(github.ref, 'main') - run: mvn -B deploy -Pgithub -s $GITHUB_WORKSPACE/settings.xml -pl '!flyway-community-db-support-archetype' -DskipPublishing=true + run: mvn -B deploy -Pgithub -s $GITHUB_WORKSPACE/settings.xml -pl '!flyway-community-db-support-archetype' env: GITHUB_TOKEN: ${{ github.token }} - name: Publish Archetype to GitHub Packages Apache Maven if: contains(github.ref, 'main') - run: mvn -B deploy -Pgithub -s $GITHUB_WORKSPACE/settings.xml -pl flyway-community-db-support-archetype -DskipPublishing=true + run: mvn -B deploy -Pgithub -s $GITHUB_WORKSPACE/settings.xml -pl flyway-community-db-support-archetype env: GITHUB_TOKEN: ${{ github.token }} diff --git a/pom.xml b/pom.xml index df9b257..72c5fab 100644 --- a/pom.xml +++ b/pom.xml @@ -172,26 +172,28 @@ github + + true + + + + github + https://maven.pkg.github.com/flyway/flyway-community-db-support + + + github + https://maven.pkg.github.com/flyway/flyway-community-db-support + + org.sonatype.central central-publishing-maven-plugin - 0.7.0 + 0.8.0 true - - - injected-central-publishing - none - - - - - org.apache.maven.plugins - maven-surefire-plugin - 3.5.3 - true + github diff --git a/settings.xml b/settings.xml index 930d1de..603dd27 100644 --- a/settings.xml +++ b/settings.xml @@ -2,20 +2,6 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> - - - github - - github - Flyway Community DB Support Maven Packages - https://maven.pkg.github.com/flyway/flyway-community-db-support - - github - Flyway Community DB Support Maven Packages - https://maven.pkg.github.com/flyway/flyway-community-db-support - - - github