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

Maven script cannot parse jvm.config with CRLF

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.5.0
    • 3.5.3
    • Command Line
    • None
    • Windows 7 with MINGW64 environment via Git for Windows 0.1.1 including GNU coreutils and bash 4.4.12

    Description

      A project with a .mvn/jvm.config file that has CRLF line endings will not parse it correctly. The script uses the tr command to change LF to space, but this leaves CR behind. For example, with the jvm.config file containing the text -Xmx1024m -Xms512m followed by CRLF, the following error message is printed:

      $ mvn install
      Error: Could not create the Java Virtual Machine.
      Error: A fatal exception has occurred. Program will exit.
      Invalid initial heap size: -Xms512m
      

      Attachments

        Activity

          People

            hboutemy Herve Boutemy
            andrew.kennedy Andrew Kennedy
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m