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

Usage of CI friendly version placeholders does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.4.1, 3.0.0-M1
    • 3.0.0-M2, 3.0.0-M3
    • None
    • None

    Description

      If I use the placeholders in a project based on the CI Friendly currently maven-enforcer-plugin fails like this:

      [INFO] --- flatten-maven-plugin:1.0.0:clean (flatten.clean) @ domain ---
      [INFO] Deleting /Users/kama/ws-git/javaee/domain/.flattened-pom.xml
      [INFO]
      [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven) @ domain ---
      Downloading: http://localhost:8081/nexus/content/groups/public/com/soebes/examples/j2ee/parent/$%7Brevision%7D$%7Bsha1%7D$%7Bchangelist%7D/parent-$%7Brevision%7D$%7Bsha1%7D$%7Bchangelist%7D.pom
      [WARNING] Rule 3: org.apache.maven.plugins.enforcer.RequireNoRepositories failed with message:
      Could not find artifact com.soebes.examples.j2ee:parent:pom:${revision}${sha1}${changelist} in nexus (http://localhost:8081/nexus/content/groups/public)
      
        com.soebes.examples.j2ee:parent:pom:${revision}${sha1}${changelist}
      
      from the specified remote repositories:
        nexus (http://localhost:8081/nexus/content/groups/public, releases=true, snapshots=true)
      
      [WARNING] Rule 4: org.apache.maven.plugins.enforcer.RequirePluginVersions failed with message:
      Failure to find com.soebes.examples.j2ee:parent:pom:${revision}${sha1}${changelist} in http://localhost:8081/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced
      
        com.soebes.examples.j2ee:parent:pom:${revision}${sha1}${changelist}
      
      from the specified remote repositories:
        nexus (http://localhost:8081/nexus/content/groups/public, releases=true, snapshots=true)
      
      

      This is currently based on reading the pom file itself instead of using the parts which are offered via Maven Core...

      Attachments

        Issue Links

          Activity

            People

              khmarbaise Karl Heinz Marbaise
              khmarbaise Karl Heinz Marbaise
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: