]> juplo.de Git - maven-thymeleaf-skin/commit
Fix mvnw: wrong MAVEN_HOME path and unzip overwrites
authorKai Moritz <kai.milan.moritz@googlemail.com>
Wed, 17 Jun 2026 19:04:41 +0000 (19:04 +0000)
committerKai Moritz <kai.milan.moritz@googlemail.com>
Wed, 17 Jun 2026 19:04:41 +0000 (19:04 +0000)
commitfac7f523cfeaf07014be85f43855a5637d1865fd
treec7aad7c29052a53e1d734493be9880b8648861aa
parent16fb92505b2f91a82d27e17699d48d1e0eacd5ed
Fix mvnw: wrong MAVEN_HOME path and unzip overwrites

Two bugs introduced in the initial mvnw script:

1. apache-maven-3.9.6-bin.zip extracts into apache-maven-3.9.6/ (without
   the -bin suffix), but MAVEN_HOME was set to $DISTRIBUTION_ID which
   includes -bin. Fix: strip -bin suffix with ${DISTRIBUTION_ID%-bin}.

2. unzip without -o flag asks interactively when the cache directory
   already contains files from a previous (partial) run. Fix: add -o
   (overwrite silently).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
mvnw