Surefire Maven plugin: “Corrupted STDOUT by directly writing to native stream in forked JVM”

前端 未结 7 1682
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-01 01:23

My JUnit tests are failing when running them through Maven and the Surefire plugin (version information below). I see the error message:

Corrupted STDOUT by direc         


        
7条回答
  •  灰色年华
    2021-02-01 01:39

    The newer Surefire plugin versions are completely buggy and broken. for me (tested all the way up to Java 12) the only solution was to stick with 2.20.

    Don't use 2.20.1 either, that failed with a NPE, although maybe it is specific to particular tests, but I don't have time to investigate that.

提交回复
热议问题