Skip to content
Sven Loesekann edited this page Apr 19, 2018 · 1 revision

The Build

The build is based on the build provided by spring initializr. It is extended to build the Angular part of the application and to create a docker image.

Angular Build

The Angular build has 2 steps in the pom. They are executed by the 'exec-maven-plugin' plugin. The Steps are:

  1. Installing the Npm dependencies
  2. Executing the Npm build

The Npm Build

The Npm Build has 4 steps the can be found in the package.json in the Angular directory. The Steps are:

  1. Delete and recreate the dist directory for the Angular bundle.
  2. Building the 2 Angular bundles for the languages German and English.
  3. Deleting everything in the static resources directory where the bundles get deployed.
  4. Copying the bundles in their subdirectories in the static resources directory.

The Docker Build

To build the Docker images the 'dockerfile-maven-plugin' plugin is used. It uses the Dockerfile in the root directory to create the image.

Clone this wiki locally