Maven
  1. Maven
  2. MNG-4140

Properties incorrectly replaced in pom

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.2.0
    • Component/s: None
    • Labels:
      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.

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

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              John Casey
              Reporter:
              Reinhard Nägele
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development