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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.1, 3.0.0-M3
    • Fix Version/s: 3.0.0
    • Component/s: Standard Rules
    • Labels:
      None
    • Environment:

      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

              • Assignee:
                elharo Elliotte Rusty Harold
                Reporter:
                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