Update README to use the default Maven goal
[commons-geometry.git] / .github / workflows / maven.yml
index cbc591818049850740d3063af184e61ced330ac6..82b289287b4805e2c7be10e7f0ebc68ac332f36d 100644 (file)
@@ -30,21 +30,12 @@ jobs:
 
     steps:
     - uses: actions/checkout@v3
-    - uses: actions/cache@v3
-      with:
-        path: ~/.m2/repository
-        key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
-        restore-keys: |
-          ${{ runner.os }}-maven-
     - name: Set up JDK ${{ matrix.java }}
       uses: actions/setup-java@v3
       with:
-        distribution: adopt
+        distribution: temurin
         java-version: ${{ matrix.java }}
-    - name: Build with Maven
-      # Use the default goal
-      run: mvn -V --no-transfer-progress
-    - name: Build examples with Maven
+        cache: 'maven'
+    - name: Build with Maven including examples
       # Use the default goal
-      working-directory: ./commons-geometry-examples
-      run: mvn -V --no-transfer-progress
+      run: mvn -V --no-transfer-progress -P commons-geometry-examples