Maven 未在 NetBeans java 中正确下载依赖项

问题描述 投票:0回答:1

我的 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?

java xml maven netbeans itext
1个回答
0
投票

阅读文档

<dependency>
    <groupId>com.itextpdf</groupId>
    <artifactId>itext7-core</artifactId>
    <version>8.0.1</version>
</dependency>

了解许可条款。

© www.soinside.com 2019 - 2024. All rights reserved.