Prints the current Juneau release version taken from the root pom.xml, with any -SNAPSHOT suffix removed (for example 9.2.0).
maven-version.py instead.python3 scripts/current-release.py
None.
pom.xml in the repository root, the parent of the scripts/ directory (get_current_release).mvn help:evaluate -Dexpression=project.version -q -DforceStdout in the root and, on success, strips -SNAPSHOT and returns the result.pom.xml directly, reading the project's own <version> element.Stdout is the version string only. Warnings and errors go to stderr.
| Code | Meaning |
|---|---|
| 0 | A version was printed (from Maven or from the XML fallback). |
| 1 | pom.xml does not exist, or neither method produced a version. |
mvn on the PATH and may download plugins on a fresh machine. The XML fallback reads only the project's own <version>, not an inherited parent version.-SNAPSHOT suffix is removed; other qualifiers stay in the output.maven-version.py04.02.05.ScriptCurrentRelease.md in juneau-docs)