Class CompatibilityFixStrategy
java.lang.Object
org.apache.maven.cling.invoker.mvnup.goals.AbstractUpgradeStrategy
org.apache.maven.cling.invoker.mvnup.goals.CompatibilityFixStrategy
- All Implemented Interfaces:
- UpgradeStrategy
@Named
@Singleton
@Priority(20)
public class CompatibilityFixStrategy
extends AbstractUpgradeStrategy
Strategy for applying Maven 4 compatibility fixes to POM files.
 Fixes issues that prevent POMs from being processed by Maven 4.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondoApply(UpgradeContext context, Map<Path, org.jdom2.Document> pomMap) Subclasses implement the actual upgrade logic here.Gets a description of what this strategy does.booleanisApplicable(UpgradeContext context) Checks if this strategy is applicable given the current options.Methods inherited from class org.apache.maven.cling.invoker.mvnup.goals.AbstractUpgradeStrategyapply, getOptions, logSummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.cling.invoker.mvnup.goals.UpgradeStrategyisOptionEnabled
- 
Constructor Details- 
CompatibilityFixStrategypublic CompatibilityFixStrategy()
 
- 
- 
Method Details- 
isApplicableDescription copied from interface:UpgradeStrategyChecks if this strategy is applicable given the current options.- Parameters:
- context- the upgrade context
- Returns:
- true if this strategy should be applied
 
- 
getDescriptionDescription copied from interface:UpgradeStrategyGets a description of what this strategy does.- Returns:
- a human-readable description of the strategy
 
- 
doApplyDescription copied from class:AbstractUpgradeStrategySubclasses implement the actual upgrade logic here.- Specified by:
- doApplyin class- AbstractUpgradeStrategy
- Parameters:
- context- the upgrade context
- pomMap- map of all POM files in the project
- Returns:
- the result of the upgrade operation
 
 
-