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 @@
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: "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -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.
cache:
paths:
- /root/.m2/repository/
# cache:
# paths:
# - $HOME/.m2/repository/
build:
script: "mvn clean compile"
......@@ -36,7 +36,8 @@ build:
- docker
test:
script: "mvn test"
script:
- "mvn test"
image: maven:3.3.9-jdk-8
tags:
- docker
......@@ -58,4 +59,4 @@ docker-build:
- "mvn package"
image: maven:3.3.9-jdk-8
tags:
- 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