[Proj4j] Upload to Maven central
Rob Emanuele
rdemanuele at gmail.com
Sat Feb 21 10:52:10 PST 2015
That's great Tom, thanks for doing that.
GeoTrellis actually uses proj4j, but we imported the codebase into our
project.
https://github.com/geotrellis/geotrellis/tree/master/proj4/src/main/java/org/osgeo/proj4j
I'd like to switch to using the dependency on maven now, but we added is
making the following classes implement Serializable: Projection,
GeocentricConverter, Ellipsoid, Datum, and CoordinateReferenceSystem. We
need these to be serializable because we ship around
CoordinateReferenceSystem objects when using GeoTrellis on top of a Spark
cluster. If no on is opposed, I could make that change and GeoTrellis could
then switch over to using the maven central JAR after it's released.
Another change made by a contributor from Sweden was the replacing of
commas in decimal strings with periods (which is necessary in the case that
localization creates commas instead of periods). That happened in these
places in ProjCoordinate:
https://github.com/geotrellis/geotrellis/blob/master/proj4/src/main/java/org/osgeo/proj4j/ProjCoordinate.java#L399
https://github.com/geotrellis/geotrellis/blob/master/proj4/src/main/java/org/osgeo/proj4j/ProjCoordinate.java#L401
I'd be happy to start contributing to this codebase. Is the project still
using SVN or is there active development on this github repo:
https://github.com/Proj4J/proj4j?
Also, Martin was there any thoughts about putting this into the
LocationTech ecosystem? Since JTS is making it's way there, and GeoTrellis
relies on it, and some infrastructure would be present there, it's an
option worth considering.
Best,
Rob
On Sat, Feb 21, 2015 at 1:19 PM, Tom Arnold <tom9729 at gmail.com> wrote:
> Proj4j has been uploaded to Maven central:
> http://search.maven.org/#artifactdetails|org.osgeo|proj4j|0.1.0|jar
>
> I had to change the POM file to meet the OSSRH requirements. Martin: Can
> you merge these into SVN? You should update the SCM section in the POM to
> point at SVN instead of my Github mirror. Here's a summary of the commits:
>
> Added project info to (like mailing list, license).
> Added release profile (add -P release) to build source/javadoc jars and
> gpg sign artifacts.
>
>
> https://github.com/Tom9729/proj4j/commit/9e7ed7a23110040b0d2bd48507c5c28d4b1cbb28
>
> Changed version to 0.2.0-SNAPSHOT since 0.1.0 has been released and tagged.
>
>
> https://github.com/Tom9729/proj4j/commit/36de72346d0916ec51b973aaf141c7925a1b70ac
>
> I will make a follow-up post on the release process.
>
> Thanks!
> Tom
>
> On Tue, Feb 3, 2015 at 8:24 PM, Martin Davis <mtnclimb at gmail.com> wrote:
>
>> All sounds excellent, Tom. Carry on with the one-time upload!
>>
>> On Tue, Feb 3, 2015 at 5:13 PM, Tom Arnold <tom9729 at gmail.com> wrote:
>>
>>> > Is keeping the lib updated an ongoing manual process, or can it be
>>> automated as part of a build?
>>>
>>> I think it can be done either way. My goal for now is to do a one-time
>>> upload to get something out there. I'm thinking it will be easier to make
>>> it automated once the project moves to GitHub. For example, Travis CI (
>>> http://docs.travis-ci.com/user/getting-started/) is a service
>>> integrated with GitHub and does a build for every commit, so you could use
>>> this to upload snapshots to central automatically (more on this below).
>>>
>>> > I guess the version # in the pom acts as a unique key, so there's no
>>> problem pushing new versions as long as it is incremented appropriately...
>>>
>>> Pretty much!
>>>
>>> A nightly build from trunk would be published as a snapshot; snapshots
>>> automatically have a timestamp added to the version to make them unique,
>>> and it's considered bad practice to depend on snapshots when you go to do a
>>> release. I think Travis CI could be setup to automatically upload these
>>> snapshot builds to Maven central. This would be a way for people to get the
>>> latest version of the library without building it themselves.
>>>
>>> Every once in awhile someone should cut a release and upload to central.
>>> The version number for the release would have to be incremented. I think
>>> this can be mostly automated; perhaps by using the maven-release-plugin.
>>>
>>> Thanks,
>>> Tom
>>>
>>> On Tue, Feb 3, 2015 at 12:32 AM, Martin Davis <mtnclimb at gmail.com>
>>> wrote:
>>>
>>>> Happy for you to do it!
>>>>
>>>> Is keeping the lib updated an ongoing manual process, or can it be
>>>> automated as part of a build? I guess the version # in the pom acts as a
>>>> unique key, so there's no problem pushing new versions as long as it is
>>>> incremented appropriately...
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On Mon, Feb 2, 2015 at 8:53 PM, Tom Arnold <tom9729 at gmail.com> wrote:
>>>>
>>>>> Martin,
>>>>>
>>>>> I've never done it, but it looks like it should be pretty
>>>>> straightforward. Sonatype has a guide here:
>>>>> http://central.sonatype.org/pages/ossrh-guide.html
>>>>>
>>>>> Basically you need to make an account and submit a JIRA ticket for
>>>>> proj4j to be added. Someone will review in a couple of days and then give
>>>>> you access to upload the library.
>>>>>
>>>>> Do you want me to go ahead and do this, or would you rather take care
>>>>> of it?
>>>>>
>>>>> Thanks!
>>>>> Tom
>>>>>
>>>>> On Mon, Feb 2, 2015 at 11:22 PM, Martin Davis <mtnclimb at gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Seems like a great idea! What's involved with doing this?
>>>>>>
>>>>>> On Mon, Feb 2, 2015 at 6:11 PM, Tom Arnold <tom9729 at gmail.com> wrote:
>>>>>>
>>>>>>> Is there any plan to upload the current version of proj4j to Maven
>>>>>>> central?
>>>>>>>
>>>>>>> This would make it easier to use in projects that cannot easily add
>>>>>>> 3rdparty repos.
>>>>>>>
>>>>>>> I'm willing to help out if possible.
>>>>>>>
>>>>>>> Thanks!
>>>>>>> Tom
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Proj4j mailing list
>>>>>>> Proj4j at lists.osgeo.org
>>>>>>> http://lists.osgeo.org/mailman/listinfo/proj4j
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
> _______________________________________________
> Proj4j mailing list
> Proj4j at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/proj4j
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/proj4j/attachments/20150221/df9efb59/attachment-0001.html>
More information about the Proj4j
mailing list