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 UpgradeContextUpgradeInvoker.createContext(InvokerRequest invokerRequest) Methods in org.apache.maven.cling.invoker.mvnup with parameters of type UpgradeContextModifier and TypeMethodDescriptionprotected intUpgradeInvoker.badGoalsErrorMessage(String message, UpgradeContext context) intGoal.execute(UpgradeContext context) protected intUpgradeInvoker.execute(UpgradeContext context) protected voidUpgradeInvoker.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 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.GAVUtils.computeAllGAVs(UpgradeContext context, Map<Path, org.jdom2.Document> pomMap) Computes all GAVs from all POMs in the multi-module project for inference.protected voidAbstractUpgradeGoal.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 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) protected intAbstractUpgradeGoal.doUpgrade(UpgradeContext context, String targetModel, Map<Path, org.jdom2.Document> pomMap) Performs the upgrade logic using the strategy pattern.intAbstractUpgradeGoal.execute(UpgradeContext context) Executes the upgrade goal.intApply.execute(UpgradeContext context) intCheck.execute(UpgradeContext context) intHelp.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 GAVGAVUtils.extractGAVWithParentResolution(UpgradeContext context, org.jdom2.Document pomDocument) Extracts GAV from a POM document with parent resolution.protected final UpgradeOptionsAbstractUpgradeStrategy.getOptions(UpgradeContext context) Gets the upgrade options from the context.booleanCompatibilityFixStrategy.isApplicable(UpgradeContext context) booleanInferenceStrategy.isApplicable(UpgradeContext context) booleanModelUpgradeStrategy.isApplicable(UpgradeContext context) booleanPluginUpgradeStrategy.isApplicable(UpgradeContext context) booleanUpgradeStrategy.isApplicable(UpgradeContext context) Checks if this strategy is applicable given the current options.protected voidAbstractUpgradeStrategy.logSummary(UpgradeContext context, UpgradeResult result) Logs a summary of the upgrade results.protected voidAbstractUpgradeGoal.saveModifications(UpgradeContext context, Map<Path, org.jdom2.Document> pomMap) Saves the modified documents to disk.