Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I get an error downloading javax.media.jai_core:1.1.3 from maven central

I get an error downloading javax.media.jai_core:1.1.3 from maven central.

The error is:

download failed: javax.media#jai_core;1.1.3!jai_core.jar

using play compiler.

like image 634
gavioto Avatar asked Nov 18 '14 11:11

gavioto


3 Answers

The problem at this moment is that maven-central doesn't have the .jar, which is a dependency from geotoolkit

Sample of maven repo content

If you need it, you could use the next public repositories:

https://maven.geotoolkit.org (jai-core is here)

https://repo.osgeo.org/repository/release/

Make sure geotoolkit-repo is before Maven Central, so that it resolves before Central which misses the jar.

like image 121
gavioto Avatar answered Nov 01 '22 10:11

gavioto


And move the http://download.osgeo.org/webdav/geotools repo to the first position in your repo list. Otherwise it will probably still give you that error.

like image 6
user1712200 Avatar answered Nov 01 '22 12:11

user1712200


For Gradle users:

    mavenCentral().content {
        excludeModule("javax.media", "jai_core")
    }
like image 3
elect Avatar answered Nov 01 '22 11:11

elect