Skip to content

mthmulders/homebrew-maven-snapshot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • In order to not request too much data from Jenkins, it might be wise to control the amount of data we fetch.
  • Instead of polling Jenkins for data, it might be more elegant and efficient to push changes to the formula. But that requires changes to how Jenkins is working and that might be a bit hard to achieve.
  • Eventually, this formula might be merged with the official maven formula, leveraging its --head option.

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.

About

Homebrew tap to install the latest Maven build

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages