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:
Ankur Mhatre
2026-11-26 21:03:12 +05:30
co-authored by Claude Sonnet 5.5
commit f32c088174
38 changed files with 1491 additions and 0 deletions
@@ -0,0 +1,22 @@
$ mvn package (Maven 4, untouched Maven 3 style project)
[INFO] ------------------------------------------------------------------------
[INFO] ------------------< com.ankurm.legacy:legacy-parent >-------------------
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] -------------------< com.ankurm.legacy:legacy-core >--------------------
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] Version not locked for default bindings plugins [maven-resources-plugin, maven-compiler-plugin, maven-surefire-plugin, maven-jar-plugin], you should define versions in pluginManagement section of your pom.xml or parent
[INFO] --- resources:3.5.0:resources (default-resources) @ legacy-core ---
[INFO] --- compiler:3.16.0:compile (default-compile) @ legacy-core ---
[INFO] Compiling 1 source file with javac [debug target 17] to target/classes
[WARNING] location of system modules is not set in conjunction with -source 17
not setting the location of system modules may lead to class files that cannot run on JDK 17
--release 17 is recommended instead of -source 17 -target 17 because it sets the location of system modules automatically
[INFO] --- resources:3.5.0:testResources (default-testResources) @ legacy-core ---
[INFO] --- compiler:3.16.0:testCompile (default-testCompile) @ legacy-core ---
[INFO] --- surefire:3.6.0:test (default-test) @ legacy-core ---
[INFO] --- jar:3.5.1:jar (default-jar) @ legacy-core ---
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------