-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Description
Affected version
4.0.0-rc4
Bug description
When trying to "downgrade" a project from 4.1.0 (updated with mvnup) to 4.0.0 the tool only shows a warning that this is not possible, but executes all other checks.
D:\Github\mpmd386\PMD_314\SingleModuleRoot>mvnup check --model-version 4.0.0 --all
[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] • --all (enables all upgrade options)
[INFO]
[INFO] → Executing strategy: Upgrading POM model version
[INFO] Upgrading POM model version
[INFO] D:\Github\mpmd386\PMD_314\SingleModuleRoot\pom.xml (current: 4.1.0)
[WARNING] ⚠ Cannot upgrade from 4.1.0 to 4.0.0
[INFO]
[INFO] Upgrading POM model version Summary:
[INFO] 0 POM(s) modified
[INFO] 1 POM(s) needed no changes
[INFO] ✓ Strategy completed successfully
[INFO]
[INFO] → Executing strategy: Applying Maven inference optimizations
[INFO] Applying Maven inference optimizations
[INFO] Computing GAVs for inference from 1 POM(s)...
[INFO] Computed 0 unique GAV(s) for inference
[INFO] D:\Github\mpmd386\PMD_314\SingleModuleRoot\pom.xml (current: 4.1.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\mpmd386\PMD_314\SingleModuleRoot\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\mpmd386\PMD_314\SingleModuleRoot\pom.xml (checking for plugin upgrades)
[INFO] ✓ No plugin upgrades needed
[INFO]
[INFO] Upgrading Maven plugins to recommended versions Summary:
[INFO] 0 POM(s) modified
[INFO] 1 POM(s) needed no changes
[INFO] ✓ Strategy completed successfully
[INFO]
[INFO] Overall Upgrade Summary:
[INFO] 1 POM(s) processed
[INFO] 0 POM(s) modified
[INFO] 1 POM(s) needed no changes
[INFO] 0 error(s) encountered
[INFO]
[INFO] Executed Strategies:
[INFO] • Upgrading POM model version
[INFO] • Applying Maven inference optimizations
[INFO] • Applying Maven 4 compatibility fixes
[INFO] • Upgrading Maven plugins to recommended versions
[INFO] ✓ No upgrades needed - all POMs are up to date
[INFO]
[INFO] Creating .mvn directory if needed to avoid root directory warnings...
[INFO] → Would create .mvn directory at D:\Github\mpmd386\PMD_314\SingleModuleRoot.mvn
This should be an error in my opinion.