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

Maven 2.0.5+ fails to resolve ${project.version} on deployment

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Duplicate
    • 2.0.5, 2.0.6
    • None
    • Deployment
    • None

    Description

      Starting with version 2.0.5, Maven fails to resolve the ${project.version} variable in poms on (SNAPSHOT?) deployment. This results in corrupted repositories, as Maven will (sporadically) fail to resolve transitive dependencies that involve these references.

      The symptom is that Maven will start searching for a magical version "2.4.1" of an artifact, although such a version never existed and was never written in any POM. Dependent builds therefor fail as this version cannot be resolved.

      The deploy plugin should always resolve all involved versions when it uploads POMs.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sbehnel Stefan Behnel
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: