'Jasper Library download forbidden when running maven: mvn package
I am downloading all libraries I need for my spring project in Intellij Idea. I am using maven: mvn package. All libraries succeeded, except for one that is forbidden:
[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]
I put this http://jaspersoft.jfrog.io/jaspersoft/third-party-ce-artifacts/com/lowagie/itext/2.1.7.js5/itext-2.1.7.js5.pom in my browser and I get 403 error code:
I think that it has to do with the blocked site's policy for my country. Anyway is there an alternative to do this???
Solution 1:[1]
Please add below repository in your 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>
Solution 2:[2]
I am updating with the latest information. Just use the code below:
<repositories>
<repository>
<id> jaspersoft-repo</id>
<url>https://jaspersoft.jfrog.io/jaspersoft/jaspersoft-repo</url>
</repository>
</repositories>
Solution 3:[3]
Add this in your pom.xml file and after </dependencies>
<repositories>
<repository>
<id>jasperreports</id>
<url>http://jasperreports.sourceforge.net/maven2</url>
</repository>
<repository>
<id>jaspersoft-third-party</id>
<url>https://jaspersoft.jfrog.io/jaspersoft/third-party-ce-artifacts/</url>
</repository>
</repositories>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Amit K Bist |
Solution 2 | André Rodrigues de Sousa |
Solution 3 | Abd Abughazaleh |