'install specific maven version in macos using brew

I am trying to install maven 3.6.3 by brew command but not working as latest is maven 3.8.2

brew install maven

Any idea??



Solution 1:[1]

Most Homebrew formulae are named in such a way that the version is part of the formula's name. For example, [email protected].

Check out the specs for the maven formula: https://formulae.brew.sh/api/formula/maven.json. You'll find that maven has the alias [email protected]. Usually, formulae without version numbers have an alias with the version number. However, [email protected] is not its own package.

However, there are some versioned formulae. For example, [email protected], found here.

Long-story short, if you look at versioned_formulae in the maven formula, you'll find that there is no formulae for Maven 3.6. Not sure why because I am positive that it used to be.

You could try writing your own formula or downloading the specific version from the website: https://archive.apache.org/dist/maven/maven-3/3.6.3/binaries/.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Oliver