Class EnforcerRuleUtils

java.lang.Object
org.apache.maven.enforcer.rules.utils.EnforcerRuleUtils

@Named public class EnforcerRuleUtils extends Object
The Class EnforcerRuleUtils.
  • Field Details

  • Constructor Details

    • EnforcerRuleUtils

      @Inject public EnforcerRuleUtils(ExpressionEvaluator evaluator)
      Instantiates a new enforcer rule utils.
      Parameters:
      evaluator - the expression evaluator
  • Method Details

    • resolve

      private void resolve(org.apache.maven.model.Plugin plugin)
    • resolve

      private void resolve(org.apache.maven.model.ReportPlugin plugin)
    • resolvePlugins

      public List<org.apache.maven.model.Plugin> resolvePlugins(List<org.apache.maven.model.Plugin> plugins)
      Resolves expressions in the given plugins. The input plugins belong to the project model and are not changed; the result holds resolved copies.
      Parameters:
      plugins - the plugins to resolve
      Returns:
      resolved copies of the plugins
    • resolveReportPlugins

      public List<org.apache.maven.model.ReportPlugin> resolveReportPlugins(List<org.apache.maven.model.ReportPlugin> reportPlugins)
      Resolves expressions in the given report plugins. The input plugins belong to the project model and are not changed; the result holds resolved copies.
      Parameters:
      reportPlugins - the report plugins to resolve
      Returns:
      resolved copies of the report plugins