Skip to content

Build Components

Purpose

This stage builds the Management Node application using Maven. The Management Node is a Spring Boot application.
Before it can be run, all dependencies must be resolved and the application must be compiled.

This stage ensures:

  • The project builds successfully
  • All dependencies resolve correctly
  • The application artefact is generated

Stage 4 – Build the Management Node

How to complete this stage

You will:

  • Navigate to the Management Node repository
  • Run a Maven build
  • Confirm that the build completes successfully

Approach and rationale

The Management Node relies on Maven for dependency management and build lifecycle execution. Running a full build at this stage ensures:

  • All required dependencies are downloaded
  • The project compiles without errors
  • The Spring Boot application artefact is created
  • Any configuration or version incompatibilities are surfaced early

This avoids runtime failures later when starting the application.

4.1 Navigate to the project directory

From the location where you cloned the repository:

cd management-node

4.2 Build and run with Maven

Build the project:

mvn clean package

This command will:

  • Clean previous build artefacts
  • Compile the source code
  • Resolve dependencies
  • Package the application

Alternatively, build the package without running tests:

mvn clean package -DskipTests

4.3 Verify the build output

After a successful build:

  • The target/ directory should exist.
  • A packaged JAR file should be present (e.g. management-node-1.0.1.jar).
  • No build errors should be reported in the console.
Operational notes
  • Ensure Java 21 is active before building.
  • If Maven fails due to version conflicts, confirm the installed Maven version is 3.9+.
  • If dependency resolution fails, check network connectivity and repository configuration.
  • If the build fails due to certificate configuration, confirm the previous stage completed successfully.

4.4 Checkpoint

At the end of this stage:

  • The Management Node project builds successfully.
  • The application artefact exists in the target/ directory.
  • No compilation or dependency errors remain.

If the build does not complete successfully, resolve all errors before proceeding.

Next Steps

Run & Validate