Class StrategyOrchestrator
java.lang.Object
org.apache.maven.cling.invoker.mvnup.goals.StrategyOrchestrator
domtrip-based orchestrator for executing different upgrade strategies.
This class provides the same functionality as StrategyOrchestrator but works with domtrip-based strategies for superior formatting preservation.
Determines which strategies to apply based on options and executes them in priority order. The DI container automatically sorts the injected strategies by their @Priority annotations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecuteStrategies(UpgradeContext context, Map<Path, eu.maveniverse.domtrip.Document> pomMap) Executes all applicable upgrade strategies in priority order.
-
Constructor Details
-
StrategyOrchestrator
-
-
Method Details
-
executeStrategies
public UpgradeResult executeStrategies(UpgradeContext context, Map<Path, eu.maveniverse.domtrip.Document> pomMap) Executes all applicable upgrade strategies in priority order. Each strategy is checked for applicability before execution.- Parameters:
context- the upgrade contextpomMap- map of all POM files in the project- Returns:
- the overall result of all strategy executions
-