gpt4 book ai didi

spring - 运行 maven 时禁止 Jasper 库下载 : mvn package

转载 作者:行者123 更新时间:2023-12-04 12:01:32 28 4
gpt4 key购买 nike

我正在 Intellij Idea 中下载我的 spring 项目所需的所有库。我正在使用 maven: mvn 包。所有库都成功了,除了一个被禁止的:

[ERROR] Failed to execute goal on project remax-service: 
Could not resolve dependencies for project com.qr.remax:remax-service:war:1.4.0: 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/):
Access denied to: http://jaspersoft.jfrog.io/jaspersoft/third-party-ce-artifacts/com/lowagie/itext/2.1.7.js5/itext-2.1.7.js5.pom , ReasonPhrase:Forbidden. -> [Help 1]
我把这个 http://jaspersoft.jfrog.io/jaspersoft/third-party-ce-artifacts/com/lowagie/itext/2.1.7.js5/itext-2.1.7.js5.pom在我的浏览器中,我得到
403错误代码:
Your client does not have permission to get URL /jaspersoft/third-party-ce-artifacts/com/lowagie/itext/2.1.7.js5/itext-2.1.7.js5.pom from this server. That’s all we know.
我认为这与我所在国家/地区的被阻止站点的政策有关。无论如何有没有办法做到这一点???

最佳答案

请在您的 pom.xml 中添加以下存储库,

<repositories> 
<repository>
<id>jasperreports</id>
<url>http://jasperreports.sourceforge.net/maven2</url>
</repository>
<repository>
<id>jaspersoft-third-party</id>
<url>http://jaspersoft.artifactoryonline.com/jaspersoft/t‌​hird-party-ce-artifa‌​cts/</url>
</repository>
</repositories>

关于spring - 运行 maven 时禁止 Jasper 库下载 : mvn package,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45920419/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com