]> 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@juplo.de>
Wed, 17 Jun 2026 20:05:58 +0000 (22:05 +0200)
commita1c68554a0b3d2664135bb03bbedd7a1e234c4c9
treec7aad7c29052a53e1d734493be9880b8648861aa
parenta44d97ae1c42691f1c77de09f08a925a3e033242
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