1

The documentation seems to indicate that the right maven repository to use is:

  <repository>
     <id>osgeo</id>
     <name>Open Source Geospatial Foundation Repository</name>
     <url>http://download.osgeo.org/webdav/geotools/</url>
  </repository>

However, it seems that the latest version on this repository was last updated in 2014. https://mvnrepository.com/artifact/org.geotools.jdbc/gt-jdbc-postgis?repo=osgeo

On the other hand, the Boundless one seems to be carrying a much more updated version than the other repositories. This one was last updated in September 2018: https://mvnrepository.com/artifact/org.geotools.jdbc/gt-jdbc-postgis/20.0

However, the documentation states that the Boundless repository is for snapshots.

Which is the proper version to use?

2

The OSGeo repository is the correct one for stable builds (I'm not sure where mvnrepository.com gets its information from) - see http://download.osgeo.org/webdav/geotools/org/geotools/jdbc/gt-jdbc-postgis/20.0/ for the latest PostGIS jar.

The Boundless repository should only be necessary if you want to use bleeding edge snapshot release jars. Unless you are a core developer or have been asked to test something by a core dev you should probably avoid being this close to the leading edge of the development.

  • Thanks. Not sure why mvnrepository is not showing the latest one, or whether it is getting confused. It seems to be pointing to the right place. Usually it is quite reliable. – jbx Nov 6 '18 at 10:32
1

I struggled a bit on the same issue since some, even recent, documentation is still reporting dead repository.

Below is the repository node I am using in my pom.xml file (of course I am talking about a Maven project) Look at https://repo.boundlessgeo.com/main/org/geotools/gt-main/ to get the list of version supported by the Boundless repository.

<repositories>
    <repository>
        <id>osgeo</id>
        <name>Open Source Geospatial Foundation Repository</name>
        <url>http://download.osgeo.org/webdav/geotools/</url>
    </repository>
    <repository>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
        <id>boundless</id>
        <name>Boundless Maven Repository</name>
        <url>http://repo.boundlessgeo.com/main</url>
    </repository>
</repositories>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.