Uses of Record Class
org.apache.maven.cling.invoker.mvnup.goals.UpgradeResult
Packages that use UpgradeResult
Package
Description
Maven Upgrade Tool Goals and Strategies.
-
Uses of UpgradeResult in org.apache.maven.cling.invoker.mvnup.goals
Methods in org.apache.maven.cling.invoker.mvnup.goals that return UpgradeResultModifier and TypeMethodDescriptionfinal UpgradeResultAbstractUpgradeStrategy.apply(UpgradeContext context, Map<Path, org.jdom2.Document> pomMap) Template method that handles common logging and error handling.UpgradeStrategy.apply(UpgradeContext context, Map<Path, org.jdom2.Document> pomMap) Applies the upgrade strategy to all eligible POMs.protected abstract UpgradeResultAbstractUpgradeStrategy.doApply(UpgradeContext context, Map<Path, org.jdom2.Document> pomMap) Subclasses implement the actual upgrade logic here.CompatibilityFixStrategy.doApply(UpgradeContext context, Map<Path, org.jdom2.Document> pomMap) InferenceStrategy.doApply(UpgradeContext context, Map<Path, org.jdom2.Document> pomMap) ModelUpgradeStrategy.doApply(UpgradeContext context, Map<Path, org.jdom2.Document> pomMap) PluginUpgradeStrategy.doApply(UpgradeContext context, Map<Path, org.jdom2.Document> pomMap) static UpgradeResultUpgradeResult.empty()Creates an empty result (no POMs processed).StrategyOrchestrator.executeStrategies(UpgradeContext context, Map<Path, org.jdom2.Document> pomMap) Executes all applicable strategies for the given context and POM map.static UpgradeResultCreates a failure result with the specified processed POMs and error POMs.UpgradeResult.merge(UpgradeResult other) Merges this result with another result, combining the sets of POMs.static UpgradeResultCreates a successful result with the specified processed and modified POMs.Methods in org.apache.maven.cling.invoker.mvnup.goals with parameters of type UpgradeResultModifier and TypeMethodDescriptionprotected voidAbstractUpgradeStrategy.logSummary(UpgradeContext context, UpgradeResult result) Logs a summary of the upgrade results.UpgradeResult.merge(UpgradeResult other) Merges this result with another result, combining the sets of POMs.