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
1 Answer:
Posted on February 16, 2023 at 11:06am
You need to use https://jaspersoft.jfrog.io/jaspersoft/third-party-ce-artifacts instead of https://jaspersoft.jfrog.io/ui/native/third-party-ce-artifacts
Regards,
Lucian