summaryrefslogtreecommitdiff
path: root/vendor/gitlab-ci-yml/Maven.gitlab-ci.yml
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2017-03-09 00:53:11 +0000
committerRobert Speicher <robert@gitlab.com>2017-03-09 00:53:11 +0000
commit71d371cf892b88b73f0678989233bce672e56632 (patch)
treecb8b5f8e8c18aa40dfcc98e2de2a3e3b295483f4 /vendor/gitlab-ci-yml/Maven.gitlab-ci.yml
parentd643ba8b1f9a682ae385895c395a8ad3910a415d (diff)
parent65f6abffc4349131ebb75f8ded0f417933c4a50e (diff)
downloadgitlab-ce-71d371cf892b88b73f0678989233bce672e56632.tar.gz
Merge branch 'update-templates-9-0' into 'master'
Update the gitignore and gitlab-ci templates for 9.0 See merge request !9824
Diffstat (limited to 'vendor/gitlab-ci-yml/Maven.gitlab-ci.yml')
-rw-r--r--vendor/gitlab-ci-yml/Maven.gitlab-ci.yml5
1 files changed, 3 insertions, 2 deletions
diff --git a/vendor/gitlab-ci-yml/Maven.gitlab-ci.yml b/vendor/gitlab-ci-yml/Maven.gitlab-ci.yml
index 1678a47f9ac..b75f0665bee 100644
--- a/vendor/gitlab-ci-yml/Maven.gitlab-ci.yml
+++ b/vendor/gitlab-ci-yml/Maven.gitlab-ci.yml
@@ -17,16 +17,17 @@
variables:
# This will supress any download for dependencies and plugins or upload messages which would clutter the console log.
# `showDateTime` will show the passed time in milliseconds. You need to specify `--batch-mode` to make this work.
- MAVEN_OPTS: "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true"
+ MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true"
# As of Maven 3.3.0 instead of this you may define these options in `.mvn/maven.config` so the same config is used
# when running from the command line.
# `installAtEnd` and `deployAtEnd`are only effective with recent version of the corresponding plugins.
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true"
# Cache downloaded dependencies and plugins between builds.
+# To keep cache across branches add 'key: "$CI_BUILD_REF_NAME"'
cache:
paths:
- - /root/.m2/repository/
+ - .m2/repository
# This will only validate and compile stuff and run e.g. maven-enforcer-plugin.
# Because some enforcer rules might check dependency convergence and class duplications