MAVEN_OPTS contains JVM flags (e.g. -Xms256m -Xmx512m). Passing them
as positional arguments to mvn causes Maven to interpret them as unknown
lifecycle phases. Fix: export MAVEN_OPTS so Maven reads and forwards it
to the JVM itself, as intended.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
fi
export MAVEN_HOME
+export MAVEN_OPTS
-exec "$MAVEN_HOME/bin/mvn" \
- ${MAVEN_OPTS} \
- "$@"
+exec "$MAVEN_HOME/bin/mvn" "$@"