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

Version property in dependencies is not expanded correctly

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Dependencies
    • Labels:
      None

      Description

      The Spring poms, for example spring-beans, version 2.0.2 use the following dependencies:
      <dependency>
      <groupId>${project.groupId}</groupId>
      <artifactId>spring-core</artifactId>
      <version>${project.version}</version>
      </dependency>
      Which means, they are using variables in the poms. In some cases, these variables are resolved correctly, but in some cases however they are not, causing problems.

      Imho, it would be better to resolve variables for released poms to avoid any problems (or if variables are allowed, this is a maven bug then)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                cziegeler Carsten Ziegeler
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: