小白熊与koala的问题二:koala项目添加excel读写功能 install时报错
已经建立好的koala项目,后修改infra 子项目,为infra 添加excel依赖的支持, 看见、excel、的jar包已经下载下来了。但是mvn install时出现以下错误,想知道为什么,谢谢
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ zzb-infra ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ zzb-infra ---
[INFO] Compiling 2 source files to D:workjavaeeopensourcekoalazzbzzb-infratargettest-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ zzb-infra ---
[INFO] Surefire report directory: D:workjavaeeopensourcekoalazzbzzb-infratargetsurefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.openkoala.excel.sample.ExcelReaderTest
Tests run: 6, Failures: 0, Errors: 6, Skipped: 0, Time elapsed: 0.278 sec <<< FAILURE!
Running org.openkoala.excel.sample.ExcelWriterTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.001 sec <<< FAILURE!
Results :
Tests in error:
testReadColumnIndexRange(org.openkoala.excel.sample.ExcelReaderTest): java.io.IOException: Invalid header signature; read 0xE011BDBFEFBDBFEF, expected 0xE11AB1A1E011CFD0
testReadColumnNameRange(org.openkoala.excel.sample.ExcelReaderTest): java.io.IOException: Invalid header signature; read 0xE011BDBFEFBDBFEF, expected 0xE11AB1A1E011CFD0
testReadFixedRows(org.openkoala.excel.sample.ExcelReaderTest): java.io.IOException: Invalid header signature; read 0xE011BDBFEFBDBFEF, expected 0xE11AB1A1E011CFD0
testWrongNumeric(org.openkoala.excel.sample.ExcelReaderTest): Unexpected exception, expected<java.lang.IllegalStateException> but was<java.lang.RuntimeException>
testWrongBoolean(org.openkoala.excel.sample.ExcelReaderTest): Unexpected exception, expected<java.lang.IllegalStateException> but was<java.lang.RuntimeException>
testWrongDate(org.openkoala.excel.sample.ExcelReaderTest): Unexpected exception, expected<java.lang.IllegalStateException> but was<java.lang.RuntimeException>
testExportData(org.openkoala.excel.sample.ExcelWriterTest): java.io.IOException: Invalid header signature; read 0xE011BDBFEFBDBFEF, expected 0xE11AB1A1E011CFD0
Tests run: 7, Failures: 0, Errors: 7, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] zzb ............................................... SUCCESS [0.528s]
[INFO] zzb-conf .......................................... SUCCESS [3.238s]
[INFO] zzb-infra ......................................... FAILURE [1.669s]
[INFO] zzb-core .......................................... SKIPPED
[INFO] zzb-application ................................... SKIPPED
[INFO] zzb-applicationImpl ............................... SKIPPED
[INFO] zzb-web ........................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.961s
[INFO] Finished at: Sat Jan 18 18:16:42 CST 2014
[INFO] Final Memory: 23M/165M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project zzb-infra: There are test failures.
[ERROR]
[ERROR] Please refer to D:workjavaeeopensourcekoalazzbzzb-infratargetsurefire-reports for the individual test results.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
ExcelReaderTest 测试类编译失败,你可以跳过 测试类编译,或者把测试类先拿掉就行了
ExcelReaderTest 测试类编译失败,你可以跳过 测试类编译,或者把测试类先拿掉就行了