Maven Help Plugin
  1. Maven Help Plugin
  2. MPH-40

help:effective-pom emits invalid XML to output file

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1
    • Component/s: None
    • Labels:
      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.

        Issue Links

          Activity

          Jürgen Hermann created issue -
          Siveton Vincent made changes -
          Field Original Value New Value
          Link This issue is duplicated by MPH-41 [ MPH-41 ]
          Siveton Vincent made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          Assignee Vincent Siveton [ siveton ]
          Fix Version/s 2.1 [ 12300 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 10:22:20 UTC 2015 [ 1428229340951 ]
          Mark Thomas made changes -
          Workflow jira [ 12721454 ] Default workflow, editable Closed status [ 12762905 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 23:56:10 UTC 2015 [ 1428278170928 ]
          Mark Thomas made changes -
          Workflow jira [ 12958944 ] Default workflow, editable Closed status [ 12995837 ]

            People

            • Assignee:
              Siveton Vincent
              Reporter:
              Jürgen Hermann
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development