小白熊与koala的问题二:koala项目添加excel读写功能 install时报错

发布于 2021-11-22 15:06:28 字数 3951 浏览 858 评论 2

已经建立好的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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

平生欢 2021-11-24 16:07:33

ExcelReaderTest 测试类编译失败,你可以跳过 测试类编译,或者把测试类先拿掉就行了

睫毛上残留的泪 2021-11-24 12:13:49

ExcelReaderTest 测试类编译失败,你可以跳过 测试类编译,或者把测试类先拿掉就行了

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文