Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hibernate-spatial unresolved dependencies postgis-jdbc;1.5.3: not found

I am installing hibernate spatial, following are the steps in the documentation from the official site:

http://www.hibernatespatial.org/tutorial-hs4.html

The problem is with the libraries' dependence

Why not find the library:

postgis-jdbc: jar: 1.5.3: compile

Look for the version of this library on the official site:

http://postgis.refractions.net/download/

But not available

The message displayed on the terminal is as follows:

[warn]    http://scala-tools.org/repo-releases/org/postgis/postgis-jdbc/1.5.3/postgis-jdbc-1.5.3.jar
[warn]          ::::::::::::::::::::::::::::::::::::::::::::::
[warn]          ::          UNRESOLVED DEPENDENCIES         ::
[warn]          ::::::::::::::::::::::::::::::::::::::::::::::
[warn]          :: org.postgis#postgis-jdbc;1.5.3: not found
[warn]          ::::::::::::::::::::::::::::::::::::::::::::::
[info] 
[info] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

Anyone know how I can resolve this dependency

Thank you very much for your attention

like image 291
Sanx Avatar asked Jan 16 '23 05:01

Sanx


1 Answers

It seems that the latest available version of postgis-jdbc in maven central repository is 1.3.3. Unfortunately, none of the three additional repositories that are declared in hibernate-spatial tutorial contain version 1.5.3 of postgis-jdbc (highest version is 1.5.2 available in repo http://www.hibernatespatial.org/repository/).

Version 1.5.3 is not listed on the postgis download page, however you still can download it here: http://postgis.refractions.net/download/postgis-1.5.3.tar.gz

A pragmatic approach would be to build the library yourself (described in postgis-1.5.3/java/jdbc/README) and add it manually to your local maven repository (please see Maven's documentation - I'd like to provide the URL but due to my current SO reputation I cannot post more than two URLs per answer).

like image 113
heiflo Avatar answered Jan 30 '23 01:01

heiflo