Publish to Maven Central Repository - STEMLab/geotools GitHub Wiki

Description

We have published GeoTools, over the years, to any number of different repositories. And then moved on; usually because the repositories cannot handle the strain.

This has resulted in two very interesting things:

How can we fix? Well if you do the same search for geoserver ....

And I see someone has published jts:

Turns out for a brief time geoserver published to codehaus and codehaus mirrors to central and I think Michael Bedward may know something about how jts got published.

So we could do the same - for stable releases.

Reference:

Status

This proposal is stalled waiting for volunteers to sign up to the tasks section.

Voting has not started yet:

Tasks

This section is used to make sure your proposal is complete (did you remember documentation?) and has enough paid or volunteer time lined up to be a success

        | :white_check_mark: | :no_entry: | :warning:               | :negative_squared_cross_mark: |

------------|--------------------|------------|-------------------------|-------------------------------| no progress | done | impeded | lack mandate/funds/time | volunteer needed |

  1. Check that codehaus still mirrors to maven central

  2. Check for any dependencies that are not in central? (Apparently this is a condition of being published? Except we saw geoserver listed...)

    • We may need to set up geotools library into different groups depending on if they can be published or not? See Split up unsupported modules. That would be sad and probably not worth it - it would amount to us changing the requirements needed in order to be a supported module.
  3. Update the pom.xml to publish to codehaus

  4. Update the instructions

  5. Clean up or mirror old repositories

    • Possibly set up our osgeo org repo as a mirror?
    • Ask refractions to shut off the old repository?
      Or should we not care since it uses "gt2" prefix?

API Changes

BEFORE

trunk/pom.xml

  ...
  <distributionManagement>
    <repository>
      <uniqueVersion>false</uniqueVersion>
      <id>osgeo</id>
      <name>Open Source Geospatial Foundation - Maven 2 repo</name>
      <url>dav:http://download.osgeo.org/webdav/geotools/</url>
    </repository>
    <snapshotRepository>
        <id>opengeo</id>
        <uniqueVersion>false</uniqueVersion>
        <name>OpenGeo Maven Repository</name>
        <url>dav:http://repo.opengeo.org</url>
    </snapshotRepository>
  </distributionManagement>
  ...

AFTER

Change to codehaus for publication

<distributionManagement>
    <repository>
      <id>codehaus.org</id>
      <name>GeoTools Central Repository</name>
      <url>dav:https://dav.codehaus.org/repository/geotools/</url>
    </repository>
    <snapshotRepository>
      <id>codehaus.org</id>
      <name>GeoTools Central Development Repository</name>
      <url>dav:https://dav.codehaus.org/snapshots.repository/geotools/</url>
    </snapshotRepository>
    <site>
      <id>codehaus.org</id>
      <url>dav:https://dav.codehaus.org/geotools/</url>
    </site>
  </distributionManagement>

Documentation Changes

list the pages effected by this proposal

⚠️ **GitHub.com Fallback** ⚠️