Open
Description
Stephan Kölle opened MWRAPPER-155 and commented
The developer build stability provided by mvnw
is excellent, and I’d like to suggest a small enhancement that aligns with its convenience.
By adding the following snippet to the mvnw
script:
if [ -f ./.jabbarc ] && [ -f ./jabbaw ]; then
export $(./jabbaw env | grep JAVA_HOME)
fi
This integrates with https://github.com/Jabba-Team/jabba, specifically its "install-less" variant https://github.com/Jabba-Team/jabba/blob/main/jabbaw.md to define a JDK version via the .jabbarc
configuration file.
This addition would make it easy to ensure a consistent JDK setup directly from the mvnw
script, which could be particularly useful for teams or projects requiring precise JDK versioning without additional manual setup.
Affects: 3.3.2