• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
adeline-tech
博客园    首页    新随笔    联系   管理    订阅  订阅
maven build 运行unit test失败 process exit code:134

环境:

JDK :17.0.7

Springboot: 3.1.0

Junit: 5

问题:

运行mvn clean install 时在maven-surefire-plugin: test 阶段失败。The forked VM terminated without prperly saying goodbye. VM crash or System.exit called?

dump file 中的错误:Corrupted channel by directly writing to native stream in forked JVM 1. Stream 'FATAL ERROR in native method: processing of -javaagent failed, processJavaStart failed'.

 

解决方法:

升级maven-surefire-plugin(从 2.22 到 3.1.2)

升级jacoco-maven-plugin(从0.8.2 到 0.8.10)

 

参考:

https://stackoverflow.com/questions/55272870/surefire-maven-plugin-corrupted-stdout-by-directly-writing-to-native-stream-in

https://github.com/jacoco/jacoco/issues/828

posted on 2023-07-19 17:57  adeline.pan  阅读(592)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3