Gradle JasperReports Dependency fails to resolve

Hello, I'm currently developing a gradle project that uses JasperReports. During the dependency download it fails due to HEAD requests to the server returning 403 forbidden. Is there a workaround I'm not aware of? Or would it be possible to allow HEAD requests?

 

The repositories and dependencies:

repositories {
    mavenCentral()
    maven{url "https://jaspersoft.jfrog.io/ui/native/jaspersoft-repo"}
    maven{url "https://jaspersoft.jfrog.io/ui/native/third-party-ce-artifacts"}
}
 
dependencies {
    implementation 'org.apache.groovy:groovy:4.0.2'
    implementation 'net.sf.jasperreports:jasperreports:6.20.0'
    testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
    testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
}

The error log:

Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not resolve com.lowagie:itext:2.1.7.js10.
     Required by:
         project : > net.sf.jasperreports:jasperreports:6.20.0
      > Could not resolve com.lowagie:itext:2.1.7.js10.
         > Could not get resource 'https://jaspersoft.jfrog.io/ui/native/jaspersoft-repo/com/lowagie/itext/2.1.7.js10/itext-2.1.7.js10.pom'.
            > Could not HEAD 'https://jaspersoft.jfrog.io/ui/native/jaspersoft-repo/com/lowagie/itext/2.1.7.js10/itext-2.1.7.js10.pom'. Received status code 403 from server: Forbidden

alexandre.mendes's picture
Joined: Feb 16 2023 - 4:51am
Last seen: 3 months 1 week ago

1 Answer:

lucianc's picture
75976
Joined: Jul 17 2006 - 1:10am
Last seen: 3 hours 8 min ago
Feedback