Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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:

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.

I think that it has to do with the blocked site's policy for my country. Anyway is there an alternative to do this???

like image 637
YanetP1988 Avatar asked Dec 24 '22 14:12

YanetP1988


2 Answers

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>
like image 136
André Rodrigues de Sousa Avatar answered Dec 26 '22 10:12

André Rodrigues de Sousa


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>
like image 27
Amit K Bist Avatar answered Dec 26 '22 11:12

Amit K Bist