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:
@@ -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"));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user