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

ModelBuilder hangs with malformed pom.xml

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.5.2, 3.5.3
    • Fix Version/s: 3.6.1
    • Component/s: POM
    • Labels:
      None

      Description

      Maven hangs (infinitie loop, 100% CPU) when provided with a malformed pom.xml file that contains a question mark in a tag name.

      Minimal example for a pom.xml: 

      <project /><?>

       
      Running mvn results in the output:

      [INFO] Scanning for projects...

        
      And is stuck there forever, instead of providing an error message.

      I found this issue using JQF.

        Attachments

        1. MNG-6374.patch
          4 kB
          Gabriel Belingueres

          Issue Links

            Activity

              People

              • Assignee:
                hboutemy Herve Boutemy
                Reporter:
                rohanpadhye Rohan Padhye
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: