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,10 @@
package com.ankurm.m4;
/** Tiny library class so the demo has something real to compile, test and package. */
public final class Greeter {
private Greeter() {}
public static String greet(String name) {
return "Hello, " + name + " (built with Maven 4)";
}
}
@@ -0,0 +1,12 @@
package com.ankurm.m4;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
class GreeterTest {
@Test
void greets() {
assertEquals("Hello, Ankur (built with Maven 4)", Greeter.greet("Ankur"));
}
}