Maven
  1. Maven
  2. MNG-2446

parent Pom properties not resolved for module dependencies

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.0.4
    • Fix Version/s: None
    • Component/s: Dependencies
    • Labels:
      None
    • Environment:
      WindowsXP/Linux - JDK 1.4 last version

      Description

      root-project --> root-pom.xml with <version>$

      {my.version}</version>
      |------->proj1 <parent><version>${my.version}

      </version></parent>

      ------->proj2 <parent><version>$ {my.version}</version></parent>
      | |
      | |->proj1 dependency
      |------->proj3 <parent><version>${my.version}

      </version></parent>

      if I compile from the root-project directory, all compile fine.

      if I compile from the proj2 directory, maven2 resolve proj2-$

      {my.version}
      resolve proj1-${my.version}

      but tries to resolve the parent version root-project-$

      {my.version}

      but this is not resolved.

      1. InstallMojo.quoteReplacement.patch
        0.6 kB
        Henrik Brautaset Aronsen
      2. maven-version-problem.zip
        2 kB
        Henrik Brautaset Aronsen

        Issue Links

          Activity

            People

            • Assignee:
              Brett Porter
              Reporter:
              Jeremie Poutrin
            • Votes:
              11 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development