首页 > 解决方案 > 如何使 POM 中的依赖项使用特定版本的库

问题描述

库 fr.opensagres.poi.xwpf.converter.pdf 需要 Apache POI 3.17。我刚刚将我的项目更新到使用 Apache POI 4.0 的最新版本的 Apache Tika。

有没有办法在 POM 中指定让 fr.opensagres.poi.xwpf.converter.pdf 使用 Apache POI 3.17 而我的项目使用 Apache POI 4.0?

<dependency>
  <groupId>org.apache.tika</groupId>
  <artifactId>tika-parsers</artifactId>
  <version>${tika.version}</version>
</dependency>

<dependency>
  <groupId>org.apache.tika</groupId>
  <artifactId>tika-langdetect</artifactId>
  <version>${tika.version}</version>
</dependency>


<dependency>
  <groupId>fr.opensagres.xdocreport</groupId>
  <artifactId>fr.opensagres.poi.xwpf.converter.pdf</artifactId>
  <version>2.0.1</version>
</dependency>

标签: mavenapache-poipom.xmlapache-tika

解决方案


推荐阅读