【问题标题】:pom.xml error - Missing artifact com.lowagie:itext:jar:4.2.2, how dowload itext 4.2.2 jar file?pom.xml 错误 - 缺少工件 com.lowagie:itext:jar:4.2.2,如何下载 itext 4.2.2 jar 文件?
【发布时间】:2020-10-01 09:21:38
【问题描述】:

如何下​​载 itext 4.2.2 jar 在旧项目中使用并在 pom.xml 中出错,我不想使用和更改 itextpdf 5.x.x 版本

错误 - 缺少工件 com.lowagie:itext:jar:4.2.2

【问题讨论】:

    标签: itext pom.xml


    【解决方案1】:

    iText 4.2.2 不存在,也从未作为 jar 存在。如果您查看 4.2.2 (https://search.maven.org/artifact/com.lowagie/itext/4.2.2/pom) 的 Maven Central,您会发现它仅作为到 5.5.6 的重定向存在。我知道,因为我是编写那个版本的 POM 并将其上传到 Maven Central 的人。这篇博文详细描述了为什么这样做:https://itextpdf.com/en/blog/technical-notes/my-maven-build-broken-what-should-i-do

    要修复您的构建,您需要使用com.lowagie:itext:jar:2.1.7(iText Software 的 2.xx 版本的最新正式版本)或者您可以使用com.itextpdf:itextpdf:jar:5.5.13.1,但您还必须从com.lowagie.*com.itextpdf.*,但除此之外,您的代码应该可以正常工作。

    相关问题:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多