当我尝试部署工件时,我会为确实有测试的项目获得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

还有其他人遇到这个问题吗?

谢谢,

沃尔特

有帮助吗?

解决方案

有几个与不兼容的魔术价值相关的链接 - 也许在这种情况下是一种适用的链接。

本质上,类文件在某种程度上损坏。

链接1 链接2

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top