2010-12-22 31 views
0

當我嘗試部署文物,爲我的預測,確實有測試一個ClassFormatError:ClassFormatError - Surefire?

[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 

有其他人遇到這個問題?

感謝,

沃爾特

回答

0

有幾個相關的不兼容魔法值鏈接 - 適用於這種情況他們也許有。

實質上,類文件在某些​​方面已損壞。

Link 1 Link 2

+0

感謝您的鏈接,我偶然發現了他們前面;但是,我禁用了資源過濾,jalopy格式和依賴項解包。奇怪的是,這個問題只發生在部署目標上。即使我運行測試(mvn clean test,mvn clean package,mvn clean install),那些工作正常。這只是部署階段被打破。 – Walter 2010-12-23 16:12:25