diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 00000000..3d88843b --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,25 @@ +# This workflow will build a Java project with Maven +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven + +name: Java CI with Maven + +on: + push: + pull_request: + +jobs: + build: + runs-on: ubuntu-22.04 + steps: + - name: Git Checkout + uses: actions/checkout@v4 + - name: JDK 11 + uses: actions/setup-java@v4 + with: + java-version: 11 + distribution: 'temurin' + cache: 'maven' + - name: Build with Maven + env: + MAVEN_OPTS: -Djava.awt.headless=true -Dorg.slf4j.simpleLogger.defaultLogLevel=info -Dmaven.wagon.http.retryHandler.count=2 -Dmaven.wagon.http.pool=true + run: mvn --batch-mode clean install -Psnapshots -V -B diff --git a/pom.xml b/pom.xml index a0c7c7ef..1e6b3f28 100644 --- a/pom.xml +++ b/pom.xml @@ -44,4 +44,30 @@ + + + + snapshots + + false + + snapshots + + + + + sonatype-nexus-snapshots + Sonatype Nexus Snapshots + https://oss.sonatype.org/content/repositories/snapshots + + false + + + true + + + + + +