maven 安装 jasper 报错 308: Permanent Redirect

Javi D. Bargz

我尝试安装我的 maven 项目的依赖项,但是当我使用“mvn install”时,我收到了 jasper 报告的这个错误:

[INFO] Scanning for projects...
[INFO] 
[INFO] --------------< com.projectSecret >--------------
[INFO] Building projectSecret
[INFO] --------------------------------[ war ]---------------------------------
Downloading from jaspersoft-third-party: http://jaspersoft.jfrog.io/jaspersoft/third-party-ce-artifacts/com/lowagie/itext/2.1.7.js5/itext-2.1.7.js5.pom
Downloading from jaspersoft-third-party: http://jaspersoft.jfrog.io/jaspersoft/third-party-ce-artifacts/org/olap4j/olap4j/0.9.7.309-JS-3/olap4j-0.9.7.309-JS-3.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.373 s
[INFO] Finished at: 2021-06-10T20:20:08-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project projectSecret: Could not resolve dependencies for project com.projectSecret.org:projectSecret:war:0.0.1-SNAPSHOT: Failed to collect dependencies at net.sf.jasperreports:jasperreports:jar:6.4.0 -> com.lowagie:itext:jar:2.1.7.js5: Failed to read artifact descriptor for com.lowagie:itext:jar:2.1.7.js5: Could not transfer artifact com.lowagie:itext:pom:2.1.7.js5 from/to jaspersoft-third-party (http://jaspersoft.jfrog.io/jaspersoft/third-party-ce-artifacts/): Transfer failed for http://jaspersoft.jfrog.io/jaspersoft/third-party-ce-artifacts/com/lowagie/itext/2.1.7.js5/itext-2.1.7.js5.pom 308 Permanent Redirect -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

知道为什么这个错误或解决方案吗?谢谢!

我使用 Linux Mint 20 和:

Apache Maven 3.6.3
Maven home: /usr/share/maven
Java version: 1.8.0_292, vendor: Private Build, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre
OS name: "linux", version: "5.4.0-74-generic", arch: "amd64", family: "unix"

我的 pom.xml

七月

我刚刚遇到了同样的问题。看来 iText 在公共存储库上不可用。这里https://github.com/TIBCOSoftware/jasperreports/issues/148解决方案是添加以下 repo:

<repository>
   <id>jaspersoft-third-party</id>
   <url>https://jaspersoft.jfrog.io/jaspersoft/third-party-ce-artifacts/</url>
</repository>

编辑:我需要将 url 从 http 更改为 https。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章