Thanks Mark,

The limitation here is how Spark uses Ivy to download JARs on-demand - I can't 
change the order of the repos, Maven Central will always come first. And 
because the .pom file is in Maven Central it thinks it can get the binary from 
there and fails.

Cheers,
Hugh

On 19/2/21, 12:43 am, "Mark Prins" <mc.pr...@gmail.com> wrote:

    On 17-02-2021 00:23, Hugh Saalmans wrote:
    > Thanks Jody,
    > 
    > Having spent a few hours on it – the issue is caused by Spark using Ivy 
    > for package management.
    > 
    > Pulling sub-dependencies (like JAI) defaults to Maven Central and Ivy 
    > tries to pull the JAR if the .pom/.xml files are present. Hence it fails 
    > because the binary isn’t there.
    > 
    > Workaround is to manually copy the jai_core-1.1.3.jar file to the 
    > appropriate ~/.ivy2 directory. E.g.:
    > 
    > mkdir -p ${HOME}/.ivy2/cache/javax.media/jai_core/jars
    > cd ${HOME}/.ivy2/cache/javax.media/jai_core/jars
    > wget 
    > 
https://s3-ap-southeast-2.amazonaws.com/minus34.com/opensource/jai_core-1.1.3.jar

    this file is hosted by https://repo.osgeo.org/ which is listed as a 
    repository to use for (transitive) dependencies in the geotools pom file.

    Ivy should be able to use that dependency information, but last time I 
    used Ivy was many years ago,
    You should be able to add a resolver to the ivy settings; not sure if 
    you want to put any effert into that.

    -M



    _______________________________________________
    GeoTools-GT2-Users mailing list
    GeoTools-GT2-Users@lists.sourceforge.net
    https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


_____________________________________________________________________

The information transmitted in this message and its attachments (if any) is 
intended 
only for the person or entity to which it is addressed.
The message may contain confidential and/or privileged material. Any review, 
retransmission, dissemination or other use of, or taking of any action in 
reliance 
upon this information, by persons or entities other than the intended recipient 
is 
prohibited.

If you have received this in error, please contact the sender and delete this 
e-mail 
and associated material from any computer.

The intended recipient of this e-mail may only use, reproduce, disclose or 
distribute 
the information contained in this e-mail and any attached files, with the 
permission 
of the sender.

This message has been scanned for viruses.
_____________________________________________________________________

_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to