Public | Automated Build

Last pushed: 2 years ago
Short Description
Base build environment for builds done by Sebastian Hoß
Full Description

= Maven Build Process image:["Discuss on Google Groups", link="!forum/metio"] image:["Chat on IRC", link=""]
Sebastian Hoß[@sebhoss]
:github-org: sebhoss
:project-name: maven-build-process
:project-group: de.xn--ho-hia.maven


<div class="paragraph">
<span class="image"><a class="image" href=""><img src="" alt="CC Zero"></a></span>
<span class="image"><a class="image" href=""><img src="" alt="Maven Central"></a></span>
<span class="image"><a class="image" href=""><img src="" alt="Docker Hub"></a></span>
<span class="image"><a class="image" href=""><img src="" alt="Open Hub statistics"></a></span>
<span class="image"><a class="image" href=""><img src="" alt="Build Status"></a></span>

Bunch of POMs that help setting up a link:[Maven] based build process.

== Usage

=== Maven Parent

Inherit from one of the parents like this:

[source, xml]

<!-- for early prototypes -->


<!-- for stable projects -->



Specify SCM, Issue Management, CI Management, and Distribution Management sections of your POM in case you want to deploy into link:[Maven Central].

=== Docker Build Environment

The build environment can be used together with docker-compose like this:

[source, yaml]

version: '2'
image: sebhoss/maven-build-environment:latest
container_name: my-verifier

  - "./:/project"
working_dir: /workspace
command: bash -c "cp -af /project/. . && mvn clean verify -s /config/local-nexus-mirror.xml -Dmaven.repo.local=/repository"
  - nexus


  name: nexus_default

Execute this by calling docker-compose run --rm verify-project. Executing builds directly inside the /project directory will most likely cause a permission problem on the host system. Therefore the above docker-compose.yml file copies the project source into the /workspace directory first. The --rm option makes sure that everything gets cleaned up nicely once execution is finished. Specify a container_name in case you want to easily reference the running container. The container includes two predefined Maven settings files:

Use them together with docker networks like in the above example to run your builds against different Maven repositories. The local /repository directory already includes some artifacts. Re-use it in order to cut down on build time.

== License

To the extent possible under law, the author(s) have dedicated all copyright
and related and neighboring rights to this software to the public domain
worldwide. This software is distributed without any warranty.

You should have received a copy of the CC0 Public Domain Dedication along
with this software. If not, see

== Mirrors

Docker Pull Command
Source Repository