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,31 @@
|
||||
$ mvn install -Dmaven.consumer.pom.flatten=true (separate local repository)
|
||||
[INFO] Reactor Summary for m4-demo 1.0.0-SNAPSHOT:
|
||||
[INFO] m4-demo ............................................ SUCCESS [ x.xxx s]
|
||||
[INFO] m4-bom ............................................. SUCCESS [ x.xxx s]
|
||||
[INFO] m4-lib ............................................. SUCCESS [ x.xxx s]
|
||||
[INFO] m4-app ............................................. SUCCESS [ x.xxx s]
|
||||
[INFO] BUILD SUCCESS
|
||||
|
||||
$ cat m4-lib-1.0.0-SNAPSHOT.pom (flattened consumer POM)
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.ankurm.m4</groupId>
|
||||
<artifactId>m4-lib</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
<version>2.0.17</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
||||
$ ls m4-lib/1.0.0-SNAPSHOT (flattened)
|
||||
_remote.repositories
|
||||
m4-lib-1.0.0-SNAPSHOT-build.pom
|
||||
m4-lib-1.0.0-SNAPSHOT.jar
|
||||
m4-lib-1.0.0-SNAPSHOT.pom
|
||||
maven-metadata-local.xml
|
||||
Reference in New Issue
Block a user