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

ModelBuilder hangs with malformed pom.xml

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.5.2, 3.5.3
    • 3.6.1
    • POM
    • 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

              hboutemy Herve Boutemy
              rohanpadhye Rohan Padhye
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: