我的 pom.xml 文件中有以下代码片段,尝试安装 iText 库:
<dependency>
<groupId>com.itextpdf</groupId>
<artifactId>itext-core</artifactId>
<version>8.0.1</version>
</dependency>
但是,当我清理并构建项目时,出现以下错误:
Failed to execute goal on project ProjectName: Could not resolve dependencies for project com.mycompany:ProjectName:jar:1.0-SNAPSHOT: com.itextpdf:itext-core:jar:8.0.1 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced.
maven 中 iText 的唯一版本似乎自 2005 年以来就没有更新过 - 我怎样才能让它注册 8.0.1?
阅读文档。
<dependency>
<groupId>com.itextpdf</groupId>
<artifactId>itext7-core</artifactId>
<version>8.0.1</version>
</dependency>
了解许可条款。