You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Installing the Npm dependencies
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:
Delete and recreate the dist directory for the Angular bundle.
Building the 2 Angular bundles for the languages German and English.
Deleting everything in the static resources directory where the bundles get deployed.
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.