Skip to content

Better Maven options for workflow #2

Better Maven options for workflow

Better Maven options for workflow #2

Workflow file for this run

name: "Maven Build"
on:
pull_request:
push:
branches:
- "repackaged2"
jobs:
build:
name: "Build"
runs-on: "ubuntu-latest"
strategy:
matrix:
java-version:
- 8
- 17
steps:
- uses: "actions/checkout@v4"
- name: "Setup JDK ${{ matrix.java-version }}"
uses: "actions/setup-java@v4"
with:
java-version: "${{ matrix.java-version }}"
distribution: "temurin"
- name: "Maven Build"
shell: "bash"
env:
MAVEN_OPTS: >
-DtrimStackTrace=false
-Djansi.force=true
-Dhttp.keepAlive=false
-Dmaven.wagon.http.retryHandler.class=standard
-Dmaven.wagon.http.retryHandler.count=3
-Dmaven.wagon.http.pool=false
-Dmaven.wagon.httpconnectionManager.ttlSeconds=120
MAVEN_ARGS: "--show-version --batch-mode --fail-fast --no-transfer-progress"
run: "./mvnw clean verify"