Prints the major version number of the Maven tool installed on this machine (for example 3).
PATH before a version-sensitive build step.current-release.py instead; this script reports the Maven tool, not the project.python3 scripts/maven-version.py
None.
mvn -version and reads stdout, or stderr when stdout is empty (get_maven_version).Maven <major>.<minor> in the text.<major>.<minor> at the very start of the text.Stdout is one integer, such as 3. Errors go to stderr.
| Code | Meaning |
|---|---|
| 0 | A major version was found and printed. |
| 1 | mvn is not on the PATH, no version could be parsed from its output, or any other exception. |
mvn on the PATH; the Maven wrapper in the repository is not used.3.9.5 prints 3.current-release.py04.02.06.ScriptMavenVersion.md in juneau-docs)