Skip to content

Releases: Contrast-Security-OSS/setup-maven

v1.0.2

04 Mar 19:22
1366907

Choose a tag to compare

Release Notes - Setup Maven v1.0.2

Initial Release

This action provides a straightforward way to install and configure Apache Maven within your GitHub Actions workflows.

Key Features:

  • Version Specification:
    • Allows users to specify the desired Maven version using semantic versioning (e.g., 10.x, 10.15.1, >=10.15.0).
    • Defaults to Maven version 3.9.9 if no version is specified.
  • Automated Installation:
    • Automatically downloads and installs the specified Maven version.
    • Adds the Maven bin directory to the system's PATH, enabling direct execution of mvn commands.
  • Node.js 20 Powered:
    • Built on Node.js 20, ensuring compatibility and efficient execution within GitHub Actions.
  • Cross-Platform Support:
    • Designed to work across various operating systems supported by GitHub Actions.
  • Core Functionality:
    • Focuses on providing a reliable mechanism for installing specific Maven versions.

Usage Example:

name: Maven Build

on:
  push:
    branches:
      - main

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout code
        uses: actions/checkout@v3

      - name: Setup Maven
        uses: Contrast-Security-OSS/[email protected]
        with:
          maven-version: '3.8.6'

      - name: Build with Maven
        run: mvn clean install