Uploaded image for project: 'Maven Enforcer Plugin'
  1. Maven Enforcer Plugin
  2. MENFORCER-220

Make real MojoExecution available through the EnforcerExpressionEvaluator

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.1
    • 1.4
    • None
    • None

    Description

      Currently through the EnforcerExpressionEvaluator only the session and the project are available. The MojoExecution (incl. the lifecyclePhase) is just an empty default (https://github.com/apache/maven-enforcer/blob/trunk/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/EnforcerExpressionEvaluator.java#L49). Instead the real MojoExecution of the maven-enforcer-plugin should be made available through the evaluator.

      My use case is that I want to check within a custom rule in which lifecycle the rule was executed. This is currently not possible since the livecycle phase is always null.

      Attachments

        Issue Links

          Activity

            People

              khmarbaise Karl Heinz Marbaise
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: