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

Properties incorrectly replaced in pom

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.1.0
    • 2.2.0
    • None
    • None

    Description

      The attached sample pom configures the dependency plugin. During an install, ${project.version} is replaced by the actual version when in fact no replacement at all must happen (see pom-transformed.xml). This seems to be related to the version, since all other properties remain unchanged.

      In our real world scenario, the dependency plugin is configured in a profile in order to copy child module artifacts to Luntbuild's publish directory. This, of course, won't work if the version is replaced during install. It must be evaluated at runtime.

      This is a regression in Maven 2.1.0. Maven 2.0.10 does not have the problem.

      Attachments

        1. pom-transformed.xml
          1.0 kB
          Reinhard Nägele
        2. pom.xml
          1.0 kB
          Reinhard Nägele

        Issue Links

          Activity

            People

              jdcasey John Dennis Casey
              unguiculus Reinhard Nägele
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: