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

InputLocation missing for Xpp3Dom configuration elements

    XMLWordPrintableJSON

    Details

    • Flags:
      Patch

      Description

      I'm trying to create a view over a pom.xml file that displays current effective pom, along with showing which line came from which pom. Works more or less ok, with the provided InputLocations with one significant exception. <configuration> element in <plugin>. See screenshot.
      The idea in the patch is to have the InputLocation tree mimic the tree of Xpp3Dom objects. All the merges of Xpp3Dom then manipulate the tree of InputLocations as well.

      The patch included is not complete, just proof of concept, needs to have proper InputLocation creating in Xpp3DomMavenReaderExt file (I've replaced that by some quick post processing, changing modello plugins to generate something else is error prone slow to to start with). Additionally the default Xpp3Dom merging from plexus-utils is replaced by maven's own version of merge code. Not sure there if it's possible/practical to move that code down to the dependency.

      also some additional tests are required to be written

        Attachments

        1. mng_configuration.patch
          19 kB
          Milos Kleint
        2. 2012-07-06_1548.png
          226 kB
          Milos Kleint

          Issue Links

            Activity

              People

              • Assignee:
                mkleint Milos Kleint
                Reporter:
                mkleint Milos Kleint
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: