Uses of Class
org.apache.maven.cling.invoker.mvnup.UpgradeContext
Packages that use UpgradeContext
Package
Description
Implementation of the Maven Upgrade tool (
mvnup
).Maven Upgrade Tool Goals and Strategies.
-
Uses of UpgradeContext in org.apache.maven.cling.invoker.mvnup
Subclasses with type arguments of type UpgradeContext in org.apache.maven.cling.invoker.mvnupMethods in org.apache.maven.cling.invoker.mvnup that return UpgradeContextModifier and TypeMethodDescriptionprotected UpgradeContext
UpgradeInvoker.createContext
(InvokerRequest invokerRequest) Methods in org.apache.maven.cling.invoker.mvnup with parameters of type UpgradeContextModifier and TypeMethodDescriptionprotected int
UpgradeInvoker.badGoalsErrorMessage
(String message, UpgradeContext context) int
Goal.execute
(UpgradeContext context) protected int
UpgradeInvoker.execute
(UpgradeContext context) protected void
UpgradeInvoker.lookup
(UpgradeContext context) -
Uses of UpgradeContext in org.apache.maven.cling.invoker.mvnup.goals
Methods in org.apache.maven.cling.invoker.mvnup.goals with parameters of type UpgradeContextModifier and TypeMethodDescriptionfinal UpgradeResult
AbstractUpgradeStrategy.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.GAVUtils.computeAllGAVs
(UpgradeContext context, Map<Path, org.jdom2.Document> pomMap) Computes all GAVs from all POMs in the multi-module project for inference.protected void
AbstractUpgradeGoal.createMvnDirectoryIfNeeded
(UpgradeContext context) Creates .mvn directory in the root directory if it doesn't exist and the model isn't upgraded to 4.1.0.protected abstract UpgradeResult
AbstractUpgradeStrategy.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) protected int
AbstractUpgradeGoal.doUpgrade
(UpgradeContext context, String targetModel, Map<Path, org.jdom2.Document> pomMap) Performs the upgrade logic using the strategy pattern.int
AbstractUpgradeGoal.execute
(UpgradeContext context) Executes the upgrade goal.int
Apply.execute
(UpgradeContext context) int
Check.execute
(UpgradeContext context) int
Help.execute
(UpgradeContext context) StrategyOrchestrator.executeStrategies
(UpgradeContext context, Map<Path, org.jdom2.Document> pomMap) Executes all applicable strategies for the given context and POM map.static GAV
GAVUtils.extractGAVWithParentResolution
(UpgradeContext context, org.jdom2.Document pomDocument) Extracts GAV from a POM document with parent resolution.protected final UpgradeOptions
AbstractUpgradeStrategy.getOptions
(UpgradeContext context) Gets the upgrade options from the context.boolean
CompatibilityFixStrategy.isApplicable
(UpgradeContext context) boolean
InferenceStrategy.isApplicable
(UpgradeContext context) boolean
ModelUpgradeStrategy.isApplicable
(UpgradeContext context) boolean
PluginUpgradeStrategy.isApplicable
(UpgradeContext context) boolean
UpgradeStrategy.isApplicable
(UpgradeContext context) Checks if this strategy is applicable given the current options.protected void
AbstractUpgradeStrategy.logSummary
(UpgradeContext context, UpgradeResult result) Logs a summary of the upgrade results.protected void
AbstractUpgradeGoal.saveModifications
(UpgradeContext context, Map<Path, org.jdom2.Document> pomMap) Saves the modified documents to disk.