cuba-platform / yarg

Yet Another Report Generator - CUBA Platform reporting engine

Home Page:https://www.cuba-platform.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

javax.media:jai-core:1.1.3 dependency is not found if using the nexus.jmix.io repository

gorbunkov opened this issue · comments

Environment

  • YARG version: 2.2.11

Description of the bug or enhancement

Create new Java project.
Create any empty java class.
Add nexus.jmix.io maven repository to build.gradle file:

repositories {
    mavenCentral()
    maven {
        url 'https://nexus.jmix.io/repository/public'
    }
}

Run the ./gradlew assemble command.

AR: The error:

Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not find javax.media:jai-core:1.1.3.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/javax/media/jai-core/1.1.3/jai-core-1.1.3.pom
       - https://nexus.jmix.io/repository/public/javax/media/jai-core/1.1.3/jai-core-1.1.3.pom
     Required by:
         project : > com.haulmont.yarg:yarg:2.2.11 > org.apache.xmlgraphics:fop:2.4 > org.apache.xmlgraphics:fop-core:2.4
   > Could not find com.sun.media:jai-codec:1.1.3.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/com/sun/media/jai-codec/1.1.3/jai-codec-1.1.3.pom
       - https://nexus.jmix.io/repository/public/com/sun/media/jai-codec/1.1.3/jai-codec-1.1.3.pom
     Required by:
         project : > com.haulmont.yarg:yarg:2.2.11 > org.apache.xmlgraphics:fop:2.4 > org.apache.xmlgraphics:fop-core:2.4

The problem is that jai-core and jai-codec artifacts are not published to the Maven central repository (see the discussion). We may try to use the javax.media.jai:com.springsource.javax.media.jai.core depdendency instead.