maven - 如何使 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>
解决方案
推荐阅读
- php - 如何遍历数据库中的每个项目
- python - Xpath - 具有包含文本值的表格的多个嵌套 div
- maven - 构建 Spring Boot 应用程序的 Docker 镜像文件
- javascript - Alexa Nodejs Skill - 第二个意图询问总是失败
- ant - 如何在ant脚本中编写while循环?
- powershell - 从字符串中提取文本到文档末尾
- sql - 如何连接来自同一张表但不同行的单元格?
- javascript - 测量通过 AJAX 呈现的页面的 DOM 内容加载时间
- android - 如果未在 onCreate 中声明,则不会出现 Listview
- reactjs - 使用 NGINX 的 React、Express (Graphql) 应用程序中的 SSL