Uploaded image for project: 'Maven Help Plugin'
  1. Maven Help Plugin
  2. MPH-40

help:effective-pom emits invalid XML to output file

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1
    • None
    • None

    Description

      Currently, this fragile post-processing is needed to make the content in a file generated with -Doutput=... parseable:

      <move overwrite="true" file="${deploy.effective.pom.xml.file}.tmp" tofile="${deploy.effective.pom.xml.file}">
      <filterchain>
      <replaceregex pattern="^(Created by" replace='<!-- \1' />
      <replaceregex pattern="^<.xml .*>(<project>)" replace='--> \1' />
      <replaceregex pattern="^*+$" replace='' />
      </filterchain>
      </move>

      Solution: Either add XML comments in the generation markup, or only output the XML proper to the output file, leaving the text out of it.

      Attachments

        Issue Links

          Activity

            People

              siveton Siveton Vincent
              jhermann Jürgen Hermann
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: