setup-java v2 Maven cache

https://github.blog/changelog/2021-08-30-github-actions-setup-java-now-supports-dependency-caching/
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 61895ed..25376ac 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -26,13 +26,6 @@
         java_version: [ 11, 17-ea ]
 
     steps:
-    - name: Cache local Maven repository
-      uses: actions/cache@v2
-      with:
-        path: ~/.m2/repository
-        key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
-        restore-keys: |
-          ${{ runner.os }}-maven-
     - name: Checkout for build
       uses: actions/checkout@v2.3.4
     - name: Set up JDK
@@ -40,5 +33,6 @@
       with:
         distribution: 'zulu'
         java-version: ${{ matrix.java_version }}
+        cache: 'maven'
     - name: Verify
       run: cd api && mvn -B -V -U -C -Poss-release -Pstaging clean verify -Dgpg.skip=true