You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2026/08/10 07:49:23 UTC

(maven-dependency-plugin) 01/01: Verify the plugin still compiles against its declared prerequisite

This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch ci-verify-maven-baseline
in repository https://gitbox.apache.org/repos/asf/maven-dependency-plugin.git

commit bff0641a6293f6e36898f85b6d75737cb7683921
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Mon Aug 10 09:49:16 2026 +0200

    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 <prerequisites> claims. Compiling main and test sources against
    it catches API drift for a fraction of the cost of a test run.
    
    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 | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/.github/workflows/maven-verify.yml b/.github/workflows/maven-verify.yml
index 3acefcf1..f3a70da6 100644
--- a/.github/workflows/maven-verify.yml
+++ b/.github/workflows/maven-verify.yml
@@ -27,3 +27,24 @@ 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 <prerequisites> 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 <prerequisites><maven> in the POM.
+      - name: Compile against the declared prerequisite
+        run: mvn -B --no-transfer-progress -DmavenVersion=3.6.3 test-compile