pom.xml错误-缺少工件com.lowagie:itext:jar:4.2.2,如何下载itext 4.2.2 jar文件?

时间:2020-06-11 16:45:07

标签: itext pom.xml

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

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

1 个答案:

答案 0 :(得分:0)

iText 4.2.2不存在,也从未作为罐子存在。如果您查看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

要修复您的构建,您需要使用# file: /path/to/file/test.mp4 user.md5="3c5a39f1ceefce1e124bcd6786a99155" user.quality="10" user.sha256="0d7128a7642d24ea879bbfb3de812b7939b618d8af639f07d5104c954c8049c3" user.size="5674567" (iText Software的2.xx版本的最新正式发行版),也可以使用com.lowagie:itext:jar:2.1.7,但同时还必须更新所有内容。您的导入语句从com.itextpdf:itextpdf:jar:5.5.13.1com.lowagie.*,但除此之外,代码应该可以正常工作。

相关问题: