Commit 90d0c8ff authored by Nicola Bertazzo's avatar Nicola Bertazzo

try to cache .m2/repository folder

parent 088df825
Pipeline #31 passed with stage
in 2 minutes and 39 seconds
......@@ -18,16 +18,16 @@
# 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.showDateTime=true -Djava.awt.headless=true"
MAVEN_OPTS: " -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true -Dmaven.repo.local=/cache/maven.repository"
# 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.
- /root/.m2/repository/
# cache:
# paths:
# - $HOME/.m2/repository/
script: "mvn clean compile"
......@@ -36,7 +36,8 @@ build:
- docker
script: "mvn test"
- "mvn test"
image: maven:3.3.9-jdk-8
- docker
......@@ -58,4 +59,4 @@ docker-build:
- "mvn package"
image: maven:3.3.9-jdk-8
- docker
\ No newline at end of file
- docker
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment