1 # This file is a template, and might need editing before it works on your project.
3 # Build JAVA applications using Apache Maven (http://maven.apache.org)
4 # For docker image tags see https://hub.docker.com/_/maven/
6 # For general lifecycle information see https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
8 # This template will build and test your projects
9 # * Caches downloaded dependencies and plugins between invocation.
10 # * Verify but don't deploy merge requests.
11 # * Deploy built artifacts from master branch only.
14 GIT_SUBMODULE_STRATEGY: recursive
15 # This will suppress any download for dependencies and plugins or upload messages which would clutter the console log.
16 # `showDateTime` will show the passed time in milliseconds. You need to specify `--batch-mode` to make this work.
17 MAVEN_OPTS: "-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true"
18 # As of Maven 3.3.0 instead of this you may define these options in `.mvn/maven.config` so the same config is used
19 # when running from the command line.
20 # `installAtEnd` and `deployAtEnd` are only effective with recent version of the corresponding plugins.
21 MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true"
23 # This template uses jdk11 for verifying and deploying images
24 image: maven:3.6.1-jdk-11 # Maven 3.6.2 will currently NOT WORK!
26 # Cache downloaded dependencies and plugins between builds.
27 # To keep cache across branches add 'key: "$CI_JOB_NAME"'
29 key: "$CI_COMMIT_REF_SLUG"
41 - mvn $MAVEN_CLI_OPTS clean validate
46 - mvn $MAVEN_CLI_OPTS verify
51 junit: tests/*/target/surefire-reports/TEST-*.xml
57 - mvn $MAVEN_CLI_OPTS verify
60 - releng/net.mograsim.plugin.updatesite/target/*.zip