Add maven4-build-vs-consumer-pom: Maven 4.0.0-rc-7 build POM vs consumer POM, lifecycle hooks, mvnup, mvnd
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b4XrpfdpsacrvqnrBM
This commit is contained in:
Executable
+24
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env bash
|
||||
# Locate the Maven installs used for the captured runs. Override with environment variables.
|
||||
# Defaults assume the tarballs were unpacked next to each other under $TOOLS.
|
||||
TOOLS="${TOOLS:-$HOME/tools}"
|
||||
export M4_HOME="${M4_HOME:-$TOOLS/apache-maven-4.0.0-rc-7}"
|
||||
export M3_HOME="${M3_HOME:-$TOOLS/apache-maven-3.9.16}"
|
||||
export MVND_HOME="${MVND_HOME:-$TOOLS/maven-mvnd-2.0.0-rc-3-linux-amd64}"
|
||||
MODULE="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
export MODULE
|
||||
OUT="$MODULE/output"; export OUT
|
||||
# Fresh, isolated local repository so every run resolves and installs from scratch.
|
||||
REPO="${REPO:-$MODULE/.m2repo}"; export REPO
|
||||
|
||||
# Strip environment noise and make paths stable so reruns diff cleanly.
|
||||
clean() {
|
||||
grep -v -E '^Picked up|^\[INFO\] (Downloading|Downloaded) from|prefixes|^WARNING: |^Nov |org.jline' \
|
||||
| sed -e "s#$MODULE#<module>#g" -e "s#$REPO#<m2>#g" -e "s#$M4_HOME#<maven4>#g" \
|
||||
-e "s#$M3_HOME#<maven3>#g" -e "s#$MVND_HOME#<mvnd>#g" \
|
||||
-e "s#$JAVA_HOME#<jdk>#g" \
|
||||
-e 's/ at [0-9.]* [kMG]B\/s//' -e 's/\[ *[0-9.]* s\]/[ x.xxx s]/' \
|
||||
-e '/^\[INFO\] Total time:/d' -e '/^\[INFO\] Finished at:/d'
|
||||
}
|
||||
m4() { "$M4_HOME/bin/mvn" -B "$@"; }
|
||||
m3() { "$M3_HOME/bin/mvn" -B "$@"; }
|
||||
Reference in New Issue
Block a user