@Experimental
public interface UpgradeOptions
extends Options
Defines the options specific to the Maven upgrade tool.
This interface extends the general Options interface, adding upgrade-specific configuration options.
Should fix Maven 4 compatibility issues in POMs.
This includes fixing unsupported combine attributes, duplicate dependencies,
unsupported expressions, and other Maven 4 validation issues.
Returns:
an Optional containing the boolean value true if specified, or empty
Should upgrade plugins known to fail with Maven 4 to their minimum compatible versions.
This includes upgrading plugins like maven-exec-plugin, maven-enforcer-plugin,
flatten-maven-plugin, and maven-shade-plugin to versions that work with Maven 4.
Returns:
an Optional containing the boolean value true if specified, or empty
Should apply all upgrade options (equivalent to --model-version 4.1.0 --infer --model --plugins).
This is a convenience option that combines model upgrade, inference, compatibility fixes, and plugin upgrades.
Returns:
an Optional containing the boolean value true if specified, or empty