mthmulders / homebrew-maven-snapshot

Homebrew tap to install the latest Maven build
11 stars 1 forks source link
hacktoberfest

Maven snapshot builds - Homebrew tap

brew test-bot

Status

The tap seems to work quite well and is automatically updated with newer snapshot builds of Maven as soon as they are built.

Note that this tap conflicts with the regular, stable Maven that is installed with brew install maven. If you prefer a stable version of Maven, use that one.

If you prefer a possibly less stable version of Maven with the latest features - and possibly bugs, you may choose to use this tap.

Feedback and contributions

If you have feedback on the tap itself, please file an issue or even better, create a pull request. See under Development for how to debug, troubleshoot or test.

Feedback on the Maven builds should not does not belong in this repository. I will simply close such issues. Instead, please report such feedback at the Apache Software Foundation JIRA.

How do I install this formula?

brew install mthmulders/maven-snapshot/maven-snapshot

Or brew tap mthmulders/maven-snapshot and then brew install maven-snapshot.

Switching between "stable" and "snapshot"

To use the latest stable Maven version installed that Brew installed for you, issue

brew unlink maven-snapshot && brew link maven

To go back to the (possibly unstable) snapshot, issue

brew unlink maven && brew link maven-snapshot

Keeping up-to-date

Simple: issue brew upgrade and you'll receive the latest build that passed the extensive Maven integration test suite.

Possible improvements

Development

First, install act. Since the images used by act do not include Ruby or Git, you may want to add an additional step to .github/workflows/update-formula.yml, right after the Checkout step:

    - name: Install Ruby and Git
      run: |
        sudo apt-get update
        sudo apt-get install -y ruby git
        echo ""
        ruby -v
        git --version

Now you can run act -j update-formula to simulate a GitHub Action run. The git push will fail, alternatively replace it with cat Formula/maven-snapshot.rb to inspect the updated Homebrew formula.