Commit e7170a4c authored by Antoine Mottier's avatar Antoine Mottier
Browse files

Use Maven wrapper for build

Build using Maven Wrapper and OpenJDK Docker image.
parent 1b4c566f
Pipeline #17170 passed with stages
in 1 minute and 34 seconds
......@@ -8,7 +8,7 @@ stages:
- package
- deploy
image: maven:3.8.1-openjdk-11
image: openjdk:11-jdk-slim
variables:
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"
......@@ -23,27 +23,27 @@ cache:
build-data-collection:
stage: build
script:
- mvn $MAVEN_CLI_OPTS_DATA_COLLECTION_POM_FILE compile
- ./mvnw $MAVEN_CLI_OPTS_DATA_COLLECTION_POM_FILE compile
build-webapp:
stage: build
script:
- mvn $MAVEN_CLI_OPTS_WEBAPP_POM_FILE compile
- ./mvnw $MAVEN_CLI_OPTS_WEBAPP_POM_FILE compile
test-data-collection:
stage: test
script:
- mvn $MAVEN_CLI_OPTS_DATA_COLLECTION_POM_FILE test
- ./mvnw $MAVEN_CLI_OPTS_DATA_COLLECTION_POM_FILE test
test-webapp:
stage: test
script:
- mvn $MAVEN_CLI_OPTS_WEBAPP_POM_FILE test
- ./mvnw $MAVEN_CLI_OPTS_WEBAPP_POM_FILE test
.jar-data-collection-common:
stage: package
script:
- mvn $MAVEN_CLI_OPTS_DATA_COLLECTION_POM_FILE package
- ./mvnw $MAVEN_CLI_OPTS_DATA_COLLECTION_POM_FILE package
artifacts:
paths:
- data-collection/target/*.jar
......@@ -67,7 +67,7 @@ jar-data-collection:dev:
.war-webapp-common:
stage: package
script:
- mvn $MAVEN_CLI_OPTS_WEBAPP_POM_FILE package
- ./mvnw $MAVEN_CLI_OPTS_WEBAPP_POM_FILE package
artifacts:
paths:
- webapp/target/*.war
......
Supports Markdown
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