From 1f6d8bab993a959cbadd9fb60f637e9954ede41b Mon Sep 17 00:00:00 2001 From: Sylwester Lachiewicz Date: Mon, 10 Aug 2026 09:49:16 +0200 Subject: [PATCH] Verify the plugin still compiles against its declared prerequisite The verify matrix runs current Maven only, so nothing exercises the 3.6.3 baseline that claims. Compiling main and test sources against it catches API drift for a fraction of the cost of a test run. The build runs `clean` first. Without it the compiler reports "Nothing to compile - all classes are up to date" against a target/ populated by an earlier build, and the job passes green without having compiled anything at all. The job is expected to fail until #1682 is fixed: RenderDependenciesMojo uses MojoExecutionException(Throwable), which Maven added in 3.9.0. Generated-by: Claude Opus 5 (1M context) --- .github/workflows/maven-verify.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/maven-verify.yml b/.github/workflows/maven-verify.yml index 3acefcf19..f6f505717 100644 --- a/.github/workflows/maven-verify.yml +++ b/.github/workflows/maven-verify.yml @@ -27,3 +27,26 @@ jobs: uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v5 with: maven4-enabled: true + + # The verify matrix runs current Maven only, so nothing checks the plugin against the + # version claims to support. Compiling main and test sources against that + # baseline catches API drift without paying for a full test run. + baseline: + name: Baseline (Maven 3.6.3 API) + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + - name: Set up JDK + uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0 + with: + java-version: '21' + distribution: 'zulu' + cache: 'maven' + + # Keep in step with in the POM. `clean` matters: without it a + # populated target/ would let the compiler skip, and the job would pass without having + # compiled anything against the baseline. + - name: Compile against the declared prerequisite + run: mvn -B --no-transfer-progress -DmavenVersion=3.6.3 clean test-compile