You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by pk...@apache.org on 2026/06/20 20:09:13 UTC
(commons-xml) 18/50: fix: build creates Maven cache
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 <pk...@apache.org>
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