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

properties not expanded in generated POMs when building A/B/C nested projects

    XMLWordPrintableJSON

Details

    Description

      Using Maven version: 2.0.8-SNAPSHOT, svn r547427.

      I checked out and built 2.0.8 because I was interested in Jason van Zyl's patch for MNG-2619- "building from the middle pom of a (parent,child,grandchild) heirarchy fails". The fix works for the most part, but there still seems to be a problem with the poms that get generated during the install goal. The poms that get installed into .m2/repository do not have properties interpolated. If I run maven like:

      $ mvn install -Dglobal-version=1.0.0

      I get poms with the string "${global-version}" embedded in the resulting poms rather than what I specify on the command line (or in settings.xml). The build works properly aside from this, and if I do "mvn help:effective-pom" the properties are correctly interpolated.

      I've attached a tarfile with an example A/B/C build structure that exhibits this behavior, as well as the generated poms.

      Many thanks for your attention.

      Attachments

        1. example.tar.gz
          6 kB
        2. generated-poms.tar.gz
          2 kB
        3. InstallMojo.java.patch
          4 kB
          Henrik Brautaset Aronsen
        4. InstallMojo.java.patch
          3 kB
          Henrik Brautaset Aronsen
        5. InstallMojo.quoteReplacement.patch
          0.6 kB
          Henrik Brautaset Aronsen
        6. maven-dependency-problem.zip
          2 kB
          Henrik Brautaset Aronsen
        7. maven-install-parent.patch
          8 kB
          Henrik Brautaset Aronsen

        Issue Links

          Activity

            People

              jdcasey John Dennis Casey
              armhold George Armhold
              Votes:
              9 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: