Skip to content

Refine Maven bootstrap script #1305

@merrily01

Description

@merrily01

Is your feature request related to a problem? Please describe.

Describe the solution you'd like

  1. Support for MVN_HOME:
    Users can now set MVN_HOME to point to an existing Maven installation. The script will validate it and skip downloading if it satisfies the required version.

  2. Fix Maven installation detection:

Previous logic checked if the $3 variable was non-empty.

Now the script checks whether the binary path exists and is executable, providing a more reliable validation.

  1. Download logic improvements:

Unified curl/wget handling with clear logs and fallback mechanism.

Ensures downloaded tarballs are reused if already present.

  1. Code readability and logging

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions