Bump actions/cache from 2 to 3 (#3172)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 805f377..d76747f 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -38,7 +38,7 @@
       with:
         java-version: '8'
         distribution: 'temurin'
-    - uses: actions/cache@v2
+    - uses: actions/cache@v3
       with:
         path: ~/.m2/repository
         key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}