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

Version property in dependencies is not expanded correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • Dependencies
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: