maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Kennedy (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (MNG-6255) Maven script cannot parse jvm.config with CRLF
Date Tue, 11 Jul 2017 13:50:00 GMT

     [ https://issues.apache.org/jira/browse/MNG-6255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrew Kennedy updated MNG-6255:
--------------------------------
    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 head size: -Xms512m</pre>

  was:
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:

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


> Maven script cannot parse jvm.config with CRLF
> ----------------------------------------------
>
>                 Key: MNG-6255
>                 URL: https://issues.apache.org/jira/browse/MNG-6255
>             Project: Maven
>          Issue Type: Bug
>          Components: Command Line
>    Affects Versions: 3.5.0
>         Environment: Windows 7 with MINGW64 environment via Git for Windows 0.1.1 including
GNU coreutils and bash 4.4.12
>            Reporter: Andrew Kennedy
>
> 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 head size: -Xms512m</pre>



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message