Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-8213

Expose most important phases as constants

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.0-beta-3
    • 4.0.0-beta-4, 4.0.0
    • API
    • None

    Description

      As the Mojo annotation used by Maven 4 does no longer use an enum for the phase but a simple string (https://github.com/apache/maven/blob/e417e45e910bdd220479322ea78206c1542ebb00/api/maven-api-core/src/main/java/org/apache/maven/api/plugin/annotations/Mojo.java#L70), it would be helpful to expose the most important phase names as constants.
      I haven't found anything suitable in https://maven.apache.org/ref/4-LATEST/apidocs/constant-values.html.

      Attachments

        Issue Links

          Activity

            People

              gnodet Guillaume Nodet
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: