0

当我尝试部署工件时,我的项目确实有测试,我得到一个 ClassFormatError:

[INFO] --- maven-surefire-plugin:2.5:test (default-test) @ ssh-exec ---
[INFO] Concurrency config is {threadCount=10, parallel=methods, configurableParallelComputerPresent=false}
[INFO] Surefire report directory: /home/walterjwhite/storage/projects/software/active/stable/task/impl/ssh-exec/target/surefire-reports
org.apache.maven.surefire.booter.SurefireExecutionException: Incompatible magic value 4022320623 in class file test-classes/com/walterjwhite/task/impl/ssh/exec/RemoteCommandExecutorTest; nested exception is java.lang.ClassFormatError: Incompatible magic value 4022320623 in class file test-classes/com/walterjwhite/task/impl/ssh/exec/RemoteCommandExecutorTest
java.lang.ClassFormatError: Incompatible magic value 4022320623 in class file test-classes/com/walterjwhite/task/impl/ssh/exec/RemoteCommandExecutorTest

有没有其他人遇到过这个问题?

谢谢,

沃尔特

4

1 回答 1

0

有几个与不兼容的魔法值相关的链接——也许其中一个适用于这种情况。

本质上,类文件以某种方式损坏。

链接 1 链接 2

于 2010-12-22T02:33:27.950 回答