开发者社区> 问答> 正文

小白熊与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:\work\javaee\opensource\koala\zzb\zzb-infra\target\test-classes
[INFO] 
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ zzb-infra ---
[INFO] Surefire report directory: D:\work\javaee\opensource\koala\zzb\zzb-infra\target\surefire-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:\work\javaee\opensource\koala\zzb\zzb-infra\target\surefire-reports for the individual test results.


展开
收起
爱吃鱼的程序员 2020-06-22 13:16:28 642 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    ExcelReaderTest测试类编译失败,你可以跳过测试类编译,或者把测试类先拿掉就行了<divclass="ref">

    引用来自“唯风”的答案

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

    2020-06-22 13:16:45
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Python第五讲——关于爬虫如何做js逆向的思路 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载