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/03/25 14:51:00 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17308729#comment-17308729 ] 

Philippe Deslauriers commented on MNG-7130:
-------------------------------------------

I have marked this as "minor",  but the question  [https://stackoverflow.com/questions/23260057/] has been "up-voted" 255 times

 

It seems that for some, forking configuration,code is actually calling System.exit(0) or args (memory) is the actual issue for some.

 

*But by the number of answer and comments, and people going on circle with this issue*, it could be considered a bit more than minor. 

 

I have add numerous large enterprise project (in different companies) with this problem since the introduction of coloring in maven, and I am pretty confident that this has nothing to do with a wrong configuration.

 

I cannot share a private project for testing, but I will try to build a test project that can reproduce this

 

Thanks

 

> 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 -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}}
>  



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