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

RequireSnapshotVersion not compatible with CI Friendly Versions (${revision})

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4.1, 3.0.0-M3
    • 3.0.0
    • Standard Rules
    • None

    Description

      Following https://maven.apache.org/maven-ci-friendly.html by using

      <version>${revision}</version>
      

      and for instance

      <properties>
          <revision>1.0-SNAPSHOT</revision>
      </properties>
      

      together with RequireSnapshotVersion yields:

      [INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (default-cli) @ some-module ---
      [WARNING] Rule 0: org.apache.maven.plugins.enforcer.RequireSnapshotVersion failed with message:
      Parent cannot be a release: some.group:some-root:pom:${revision}
      

      Attachments

        Issue Links

          Activity

            People

              elharo Elliotte Rusty Harold
              famod Falko Modler
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m