Skip to content

CICD-076 · Build a Java project with Maven ​

Encyclopedia · Language build toolchains · All snippets

Previous · CICD-075 · Next · CICD-077

1. Where it fits ​

  • Placement Bash run step following checkout, or equivalent lab terminal.
  • Prerequisites source repository with committed build manifest and pinned matching toolchain.
  • Platforms local-linux, github-actions, gitea-actions.

2. Copy the snippet ​

bash
./mvnw --batch-mode --no-transfer-progress verify

3. How it works ​

The repository Maven wrapper selects the project's Maven release. The verify phase runs the gates bound by the POM, including integration tests when configured.

4. Verify the result ​

Use a pinned JDK and wrapper. Read unit and integration test reports separately.

Validation syntax-validated (Bash parse). Status definitions.