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,84 @@
$ mvnup --help
usage: mvnup [options] [<goal|phase> ...]
Options:
-a,--all Apply all upgrades (equivalent to
--model-version 4.1.0 --infer --model
--plugins)
-B,--batch-mode Run in non-interactive mode. Alias for
--non-interactive (kept for backwards
compatibility)
--color <arg> Defines the color mode of the output.
Supported are 'auto', 'always', 'never'.
-D,--define <arg> Define a user property
-d,--directory <path> Directory to use as starting point for
POM discovery
--debug Launch the JVM in debug mode (script
option).
-e,--errors Produce execution error messages
--enc Launch the Maven Encryption tool (script
option).
--force-interactive Run in interactive mode. Overrides, if
applicable, the CI environment variable
and --non-interactive/--batch-mode
options
-fos,--fail-on-severity <arg> Configure which severity of logging
should cause the build to fail
-gs,--global-settings <arg> <deprecated> Alternate path for the
global settings file.
-gt,--global-toolchains <arg> <deprecated> Alternate path for the
global toolchains file.
-h,--help Display help information
-i,--infer Use inference when upgrading (remove
redundant information)
-is,--install-settings <arg> Alternate path for the installation
settings file
-it,--install-toolchains <arg> Alternate path for the installation
toolchains file
-l,--log-file <arg> Log file where all build output will go
(disables output color)
-m,--model-version <version> Target POM model version (4.0.0 or
4.1.0)
-model,--model Fix Maven 4 compatibility issues in POM
files
--non-interactive Run in non-interactive mode. Alias for
--batch-mode
-o,--offline Work offline
-plugins,--plugins Upgrade plugins known to fail with Maven
4 to their minimum compatible versions
-ps,--project-settings <arg> Alternate path for the project settings
file
-q,--quiet Quiet output - only show errors
--raw-streams Do not decorate standard output and
error streams
-s,--settings <arg> Alternate path for the user settings
file
--shell Launch the Maven Shell tool (script
option).
-t,--toolchains <arg> Alternate path for the user toolchains
file
--up Launch the Maven Upgrade tool (script
option).
-v,--version Display version information
-V,--show-version Display version information WITHOUT
stopping build
-X,--verbose Produce execution verbose output
--yjp Launch the JVM with Yourkit profiler
(script option).
Goals:
help - display this help message
check - check for available upgrades
apply - apply available upgrades
Options:
-m, --model-version <version> Target POM model version (4.0.0 or 4.1.0)
-d, --directory <path> Directory to use as starting point for POM discovery
-i, --infer Remove redundant information that can be inferred by Maven
--model Fix Maven 4 compatibility issues in POM files
--plugins Upgrade plugins known to fail with Maven 4
-a, --all Apply all upgrades (equivalent to --model-version 4.1.0 --infer --model --plugins)
Default behavior: --model --plugins --infer are applied if no other options are specified