Class StrategyOrchestrator

java.lang.Object
org.apache.maven.cling.invoker.mvnup.goals.StrategyOrchestrator

@Named("strategy-orchestrator") @Singleton public class StrategyOrchestrator extends Object
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 Details

  • 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 context
      pomMap - map of all POM files in the project
      Returns:
      the overall result of all strategy executions