Skip to content
Snippets Groups Projects
Commit ec50e394 authored by danielspeicher's avatar danielspeicher
Browse files
parent 03b6a4d9
No related branches found
No related tags found
No related merge requests found
Pipeline #45523 failed
---
l3d reset---
title: Docker Maven Build
repo: https://gitlab.lakedrops.com/docker/maven-build
issues: https://gitlab.lakedrops.com/docker/maven-build/-/issues
......@@ -7,4 +7,48 @@ tags:
---
# Maven
Yet to be done.
In case you want to build a Java project, we provide a Docker image for a Java [Maven](https://maven.apache.org/) build.
To use this image in a **_.gitlab-ci.yml_** file, you can specify a build stage to build a JAR file:
```
stages:
- build
build_jar:
stage: build
image: registry.lakedrops.com/docker/maven-build/maven
script:
- mvn clean verify
artifacts:
name: your_artifact_name
paths:
- your_artifact_path
```
`
stages:
- build
- deploy
variables:
MAVEN_OPTS: "-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository"
GIT_SUBMODULE_STRATEGY: recursive
JAR_FILE: datacore-real-estate-3.0.0.jar
cache:
paths:
- .m2/repository
build_jar:
stage: build
image: registry.lakedrops.com/docker/maven-build/maven
script:
- mvn clean deploy -s ci_settings.xml
artifacts:
name: datacore
paths:
- real-estate/target/${JAR_FILE}
`
# New in version 2021.1.20:
# New in version 2021.3.4:
--------
- [Ansible Docker Framework](docker/ansible/index.html)
- [Ansible Wiki ELK Re-Indexing](ansible/wiki/elk/re-indexing.html)
> __
- [Docker Node, Gulp SASS and BrowserSync](docker/node/gulp-sass.html)
> __
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment