From: Kai Moritz Date: Wed, 17 Jun 2026 19:06:31 +0000 (+0000) Subject: Fix mvnw: pass MAVEN_OPTS as env var, not as command-line args X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=a58580ce56ca0c3de7d5cac5bbe1e62f0b808a37;p=maven-thymeleaf-skin Fix mvnw: pass MAVEN_OPTS as env var, not as command-line args 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 --- diff --git a/mvnw b/mvnw index d8fd9d8..c1aa4ab 100755 --- a/mvnw +++ b/mvnw @@ -197,7 +197,6 @@ if [ ! -x "$MAVEN_HOME/bin/mvn" ]; then fi export MAVEN_HOME +export MAVEN_OPTS -exec "$MAVEN_HOME/bin/mvn" \ - ${MAVEN_OPTS} \ - "$@" +exec "$MAVEN_HOME/bin/mvn" "$@"