image: eclipse-temurin:17-jdk-alpine variables: MAVEN_OPTS: >- -Dhttps.protocols=TLSv1.2 -Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true MAVEN_CLI_OPTS: >- --batch-mode --errors --fail-at-end --show-version --no-transfer-progress -DinstallAtEnd=true -DdeployAtEnd=true cache: paths: - .m2/repository stages: - compile - test - package compile: stage: compile script: - "chmod +x ./mvnw" - "./mvnw $MAVEN_CLI_OPTS compile" test: stage: test script: - "chmod +x ./mvnw" - "./mvnw $MAVEN_CLI_OPTS test" package: stage: package script: - "chmod +x ./mvnw" - "./mvnw $MAVEN_CLI_OPTS package -DskipTests=true" artifacts: name: "Maven artifacts from $CI_PROJECT_NAME on $CI_COMMIT_REF_SLUG" paths: - "**/target" reports: junit: - "**/target/*-reports/TEST-*.xml"