You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Philippe Deslauriers (Jira)" <ji...@apache.org> on 2021/05/12 14:28:00 UTC

[jira] [Updated] (MNG-7130) Integration with Jansi and windows console create JVM fork errors with lots of output during tests

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

Philippe Deslauriers updated MNG-7130:
--------------------------------------
    Description: 
see my answer to this thread

[https://stackoverflow.com/a/66801171/1634131]

 

Build with lots of console ouput (15Mb+ in my case) in surefire / failsafe tests fails with this error :

 

{{The forked VM terminated without saying properly goodbye. VM crash or System.exit called}}

 

This happens even with -B  (batch) option.

 

On a given project this would *fails systematically* in a new windows console (cmd.exe)
{quote}[path_to_jdk]\java.exe -Dmaven.home=[path_to_maven]\apache-maven-3.6.3 -Dclassworlds.conf=[path_to_maven]\bin..\bin\m2.conf -Dmaven.multiModuleProjectDirectory=[path_to_myproject] -Dfile.encoding=UTF-8  -classpath [path_to_maven]\boot\plexus-classworlds-2.6.0.jar org.codehaus.plexus.classworlds.launcher.Launcher clean install -B
{quote}
This will *always works* in a new console window (cmd.exe).
{quote}[path_to_jdk]\java.exe -Dmaven.home=[path_to_maven]\apache-maven-3.6.3 -Dclassworlds.conf=[path_to_maven]\bin..\bin\m2.conf -Dmaven.multiModuleProjectDirectory=[path_to_myproject] -Dfile.encoding=UTF-8 -Djansi.force=true -Djansi.passthrough=true -classpath [path_to_maven]\boot\plexus-classworlds-2.6.0.jar org.codehaus.plexus.classworlds.launcher.Launcher clean install -B
{quote}
Notice that both command have -B (batch mode which should turn off coloring), and the only difference is

 

{{-Djansi.force=true -Djansi.passthrough=true}}

 

{{maven-surefire-plugin/useSystemClassLoader does not have an impact on test results}}

 

  was:
see my answer to this thread

[https://stackoverflow.com/a/66801171/1634131]

 

Build with lots of console ouput (15Mb+ in my case) in surefire / failsafe tests fails with this error :

 

{{The forked VM terminated without saying properly goodbye. VM crash or System.exit called}}

 

This happens even with -B  (batch) option.

 

On a given project this would *fails systematically* in a new windows console (cmd.exe)
{quote}[path_to_jdk]\java.exe -Dmaven.home=[path_to_maven]\apache-maven-3.6.3 -Dclassworlds.conf=[path_to_maven]\bin..\bin\m2.conf -Dmaven.multiModuleProjectDirectory=[path_to_myproject] -Dfile.encoding=UTF-8 -Djansi.force=true -Djansi.passthrough=true -classpath [path_to_maven]\boot\plexus-classworlds-2.6.0.jar org.codehaus.plexus.classworlds.launcher.Launcher clean install -B
{quote}
This will *always works* in a new console window (cmd.exe).
{quote}[path_to_jdk]\java.exe -Dmaven.home=[path_to_maven]\apache-maven-3.6.3 -Dclassworlds.conf=[path_to_maven]\bin..\bin\m2.conf -Dmaven.multiModuleProjectDirectory=[path_to_myproject] -Dfile.encoding=UTF-8 -Djansi.force=true -Djansi.passthrough=true -classpath [path_to_maven]\boot\plexus-classworlds-2.6.0.jar org.codehaus.plexus.classworlds.launcher.Launcher clean install -B
{quote}
Notice that both command have -B (batch mode which should turn off coloring), and the only difference is

 

{{-Djansi.force=true -Djansi.passthrough=true}}

 

{{maven-surefire-plugin/useSystemClassLoader does not have an impact on test results}}

 


> Integration with Jansi and windows console create JVM fork errors with lots of output during tests
> --------------------------------------------------------------------------------------------------
>
>                 Key: MNG-7130
>                 URL: https://issues.apache.org/jira/browse/MNG-7130
>             Project: Maven
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.6.3
>            Reporter: Philippe Deslauriers
>            Priority: Minor
>
> see my answer to this thread
> [https://stackoverflow.com/a/66801171/1634131]
>  
> Build with lots of console ouput (15Mb+ in my case) in surefire / failsafe tests fails with this error :
>  
> {{The forked VM terminated without saying properly goodbye. VM crash or System.exit called}}
>  
> This happens even with -B  (batch) option.
>  
> On a given project this would *fails systematically* in a new windows console (cmd.exe)
> {quote}[path_to_jdk]\java.exe -Dmaven.home=[path_to_maven]\apache-maven-3.6.3 -Dclassworlds.conf=[path_to_maven]\bin..\bin\m2.conf -Dmaven.multiModuleProjectDirectory=[path_to_myproject] -Dfile.encoding=UTF-8  -classpath [path_to_maven]\boot\plexus-classworlds-2.6.0.jar org.codehaus.plexus.classworlds.launcher.Launcher clean install -B
> {quote}
> This will *always works* in a new console window (cmd.exe).
> {quote}[path_to_jdk]\java.exe -Dmaven.home=[path_to_maven]\apache-maven-3.6.3 -Dclassworlds.conf=[path_to_maven]\bin..\bin\m2.conf -Dmaven.multiModuleProjectDirectory=[path_to_myproject] -Dfile.encoding=UTF-8 -Djansi.force=true -Djansi.passthrough=true -classpath [path_to_maven]\boot\plexus-classworlds-2.6.0.jar org.codehaus.plexus.classworlds.launcher.Launcher clean install -B
> {quote}
> Notice that both command have -B (batch mode which should turn off coloring), and the only difference is
>  
> {{-Djansi.force=true -Djansi.passthrough=true}}
>  
> {{maven-surefire-plugin/useSystemClassLoader does not have an impact on test results}}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)