-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Open
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
Affected version
4.0.0-rc
Bug description
(can't test current source code due #10999 )
The help says that the default upgrade options are --model
and --plugin´, but the correct on is
-allequivalent to
--model --plugins --infer`
Output of help:
D:\Github\jira-to-gh-issues>mvnup --help
[...]
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)
-f, --force Overwrite files without asking for confirmation
-y, --yes Answer "yes" to all prompts automatically
Default behavior: --model and --plugins are applied if no other options are specified
Actual execution
D:\Github\jira-to-gh-issues>mvnup check
[INFO]
[INFO] 1 problem was encountered while building the effective settings (use -e to see details)
[INFO]
[INFO] Maven Upgrade Tool - Check
[INFO]
[INFO] Discovering POM files...
[INFO] Found 1 POM file(s)
[INFO]
[INFO] Maven Upgrade Tool
[INFO] → Upgrade options:
[INFO] • (using defaults: --model --plugins --infer)
[INFO] • Skipping strategy: Upgrading POM model version (not applicable)
[INFO]
[INFO] → Executing strategy: Applying Maven inference optimizations
[INFO] Applying Maven inference optimizations
[INFO] Computing GAVs for inference from 1 POM(s)...
[INFO] Computed 1 unique GAV(s) for inference
[INFO] D:\Github\jira-to-gh-issues\pom.xml (current: 4.0.0)
[INFO] ✓ No inference optimizations needed
[INFO]
[INFO] Applying Maven inference optimizations Summary:
[INFO] 0 POM(s) modified
[INFO] 1 POM(s) needed no changes
[INFO] ✓ Strategy completed successfully
[INFO]
[INFO] → Executing strategy: Applying Maven 4 compatibility fixes
[INFO] Applying Maven 4 compatibility fixes
[INFO] D:\Github\jira-to-gh-issues\pom.xml (checking for Maven 4 compatibility issues)
[INFO] ✓ No Maven 4 compatibility issues found
[INFO]
[INFO] Applying Maven 4 compatibility fixes Summary:
[INFO] 0 POM(s) modified
[INFO] 1 POM(s) needed no changes
[INFO] ✓ Strategy completed successfully
[INFO]
[INFO] → Executing strategy: Upgrading Maven plugins to recommended versions
[INFO] Upgrading Maven plugins to recommended versions
[INFO] D:\Github\jira-to-gh-issues\pom.xml (checking for plugin upgrades)
[INFO] • Added plugin management for org.apache.maven.plugins:maven-shade-plugin version 3.5.0 (found through effective model analysis)
[INFO] • Added plugin management to D:\Github\jira-to-gh-issues\pom.xml (target parent for 1 plugins)
[INFO] ✓ Plugin upgrades applied
[INFO]
[INFO] Upgrading Maven plugins to recommended versions Summary:
[INFO] 1 POM(s) modified
[INFO] 0 POM(s) needed no changes
[INFO] ✓ Strategy completed successfully
[INFO]
[INFO] Overall Upgrade Summary:
[INFO] 1 POM(s) processed
[INFO] 1 POM(s) modified
[INFO] 0 POM(s) needed no changes
[INFO] 0 error(s) encountered
[INFO]
[INFO] Executed Strategies:
[INFO] • Applying Maven inference optimizations
[INFO] • Applying Maven 4 compatibility fixes
[INFO] • Upgrading Maven plugins to recommended versions
[INFO] ✓ All upgrades completed successfully!
[INFO]
[INFO] Creating .mvn directory if needed to avoid root directory warnings...
[INFO] ✓ .mvn directory already exists at D:\Github\jira-to-gh-issues\.mvn
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working