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

ppkarwasz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit 32a04cb9eb86eda4ca9a5cb1c557af0086d2bf61
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Sat Apr 25 12:52:13 2026 +0200

    fix: build creates Maven cache
---
 .github/workflows/maven.yml | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index fb29f71..1b2eda2 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -77,7 +77,14 @@ jobs:
         with:
           distribution: ${{ matrix.distribution }}
           java-version: ${{ matrix.java-version }}
-          cache: maven
+
+      - name: Set up Maven cache
+        uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae  #v5.0.5
+        with:
+          path: ~/.m2/repository
+          key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+          restore-keys: |
+            ${{ runner.os }}-maven-
 
       - name: Build with Maven
         run: mvn --errors --show-version --batch-mode --no-transfer-progress

Reply via email to