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

parent Pom properties not resolved for module dependencies

    XMLWordPrintableJSON

Details

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

      Attachments

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

        Issue Links

          Activity

            People

              brett Brett Porter
              lapoutre Jeremie Poutrin
              Votes:
              11 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: