You can also tell your build system to ignore the transient dependency, and then declare the version you need explicitly. Not sure which build engine uses it, but here is how I did it with SBT in the Play Framework:
libraryDependencies ++= Seq( [...] "org.postgis" % "postgis-jdbc" % "1.5.2", "org.hibernate" % "hibernate-spatial" % "4.0-M1" exclude("org.postgis", "postgis-jdbc") )
You also need to add a sleeping spatial repo to access version 1.5.2 :
resolvers += ( "Hibernate Spatial Repository" at "http://www.hibernatespatial.org/repository" )
I found out about this using this tutorial , which shows how to do the same with Maven.
source share