猿问

PiTest 在 CI maven 构建中失败,“输入字节数组有错误的 4 字节结束单元”

在推送新代码时,我的 CI 构建在 org.pitest:mutationCoverage 目标期间失败。我的补丁集没有对任何源代码进行更改(只是一个新的空提交),但打印了以下错误:

16:49:26 [ERROR] Failed to execute goal org.pitest:pitest-maven:1.4.0:mutationCoverage (default) on project common-scheduler: Execution default of goal org.pitest:pitest-maven:1.4.0:mutationCoverage failed: Input byte array has wrong 4-byte ending unit -> [Help 1]

16:49:26 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.pitest:pitest-maven:1.4.0:mutationCoverage (default) on project common-scheduler: Execution default of goal org.pitest:pitest-maven:1.4.0:mutationCoverage failed: Input byte array has wrong 4-byte ending unit

16:49:26     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)

16:49:26     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)

16:49:26     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)

16:49:26     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)

16:49:26     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)

16:49:26     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)

16:49:26     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)

16:49:26     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)

16:49:26     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)

16:49:26     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)

16:49:26     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)

我已经为 PiTest 启用了详细日志记录,并为 Maven 启用了调试日志记录,但在日志中没有看到任何内容。在网上也看不到与此错误类似的内容。



动漫人物
浏览 110回答 1
1回答

天涯尽头无女友

问题是损坏的历史文件。清理环境并再次运行可以解决问题。
随时随地看视频慕课网APP

相关分类

Java
我要回答