【发布时间】:2013-08-16 11:08:51
【问题描述】:
我们在应用程序中使用 POI 3.8。我们的项目正在使用 dbunit 从 .xls 文件中加载数据集,显然 dbunit 与 POI 3.8 不兼容。我得到以下异常,
java.lang.NoSuchMethodError: org.apache.poi.hssf.usermodel.HSSFDateUtil.isCellDateFormatted(Lorg/apache/poi/hssf/usermodel/HSSFCell;)Z
似乎 dbunit 需要 POI 3.2。但是我不能降级我的 POI 版本。有没有办法解决这个问题。在一篇文章中,我阅读了有关下载 dbunit 源代码并针对 poi 3.8 重新编译它的信息。如何进行这种重新编译?
【问题讨论】:
-
他们网站上的 [DBUnit 构建指南](dbunit.sourceforge.net/building.html) 不包括它吗?
标签: java maven compilation apache-poi dbunit