jasperreports icon indicating copy to clipboard operation
jasperreports copied to clipboard

Updating from v7.0.6 to v7.0.7 shows OpenPDF dependency issue

Open danielpeintner opened this issue 6 months ago • 2 comments

I wanted to update my project with the latest release by changing my gradle setup from

    implementation 'net.sf.jasperreports:jasperreports:7.0.6'
    implementation 'net.sf.jasperreports:jasperreports-fonts:7.0.6'
    implementation 'net.sf.jasperreports:jasperreports-pdf:7.0.6'

to

    implementation 'net.sf.jasperreports:jasperreports:7.0.7'
    implementation 'net.sf.jasperreports:jasperreports-fonts:7.0.7'
    implementation 'net.sf.jasperreports:jasperreports-pdf:7.0.7'

and I get the following issue.

Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not find com.github.librepdf:openpdf:1.3.43.jaspersoft.1.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/com/github/librepdf/openpdf/1.3.43.jaspersoft.1/openpdf-1.3.43.jaspersoft.1.pom
     Required by:
         root project 'myAVA' > net.sf.jasperreports:jasperreports-pdf:7.0.7

Could it be that something has changed regarding how OpenPDF dependency is linked?

danielpeintner avatar Jun 03 '26 09:06 danielpeintner

We currently have an similar issue with this updated version. If I add directly the Jaspersoft Repo to my pom.xml the dependency can be downloaded.

    <repositories>
       <repository>
         <id>jasper</id>
         <name>jasper</name>
         <url>https://jaspersoft.jfrog.io/artifactory/third-party-ce-artifacts/</url>
       </repository>
     </repositories>

If I use the same URL in my Artifactory instance I get an 401 error. That seems strange to me. Could not transfer artifact com.github.librepdf:openpdf:jar:1.3.43.jaspersoft.1 from/to releases / status code: 401, reason phrase: Unauthorized (401)

fischey avatar Jun 03 '26 10:06 fischey

JasperReports Library has used custom builds of OpenPDF before and they have been published in the same way on our public Maven repository at https://jaspersoft.jfrog.io/artifactory/third-party-ce-artifacts/. We rely un custom built OpenPDF until our fixes/changes are eventually accepted by the OpenPDF team.

Thank you, Teodor

teodord avatar Jun 03 '26 11:06 teodord