[gdal-dev] Issue with deployment of Java bindings of GDAL 3.12.0 to central.sonatype.com

Even Rouault even.rouault at spatialys.com
Sat Nov 8 05:38:17 PST 2025


Thanks for the hint. After a few tweaks 
(https://github.com/OSGeo/gdal/pull/13365), I've managed to get to a 
step where the bundle.zip validates the consistency checks of 
central.sonatype.com and I'm apparently at one click away from 
publishing it.

The content of that zip is:

org/
org/gdal/
org/gdal/gdal/
org/gdal/gdal/3.12.0/
org/gdal/gdal/3.12.0/gdal-3.12.0-javadoc.jar
org/gdal/gdal/3.12.0/gdal-3.12.0-javadoc.jar.asc
org/gdal/gdal/3.12.0/gdal-3.12.0-javadoc.jar.md5
org/gdal/gdal/3.12.0/gdal-3.12.0-javadoc.jar.sha1
org/gdal/gdal/3.12.0/gdal-3.12.0-sources.jar
org/gdal/gdal/3.12.0/gdal-3.12.0-sources.jar.asc
org/gdal/gdal/3.12.0/gdal-3.12.0-sources.jar.md5
org/gdal/gdal/3.12.0/gdal-3.12.0-sources.jar.sha1
org/gdal/gdal/3.12.0/gdal-3.12.0.jar
org/gdal/gdal/3.12.0/gdal-3.12.0.jar.asc
org/gdal/gdal/3.12.0/gdal-3.12.0.jar.md5
org/gdal/gdal/3.12.0/gdal-3.12.0.jar.sha1
org/gdal/gdal/3.12.0/gdal-3.12.0.pom
org/gdal/gdal/3.12.0/gdal-3.12.0.pom.asc
org/gdal/gdal/3.12.0/gdal-3.12.0.pom.md5
org/gdal/gdal/3.12.0/gdal-3.12.0.pom.sha1

Despite it passing their tests, I'm wondering if there will not be an 
issue with the org/gdal/gdal/ hierarchy that reflects well the 
org.gdal.gdal. namespace, but not that much the org.gdal.ogr. and 
org.gdal.osr. ones. I tried to remove one level of hierarchy to have 
just "org/gdal/" but the checks didn't like it.

Even

Le 08/11/2025 à 08:27, Laurențiu Nicola via gdal-dev a écrit :
> Just a guess, but https://stackoverflow.com/a/79733755 and 
> https://central.sonatype.org/publish/publish-portal-upload/ make it 
> sound like you're not supposed to upload a jar there.
>
> Laurentiu
>
> On Sat, Nov 8, 2025, at 01:04, Even Rouault via gdal-dev wrote:
>>
>> Hi,
>>
>> up to now the bundle.jar produced when building the Java bindings was 
>> uploaded to https://oss.sonatype.org <https://oss.sonatype.org> . But 
>> going on that site, I see it has been deprecated in favor of 
>> https://central.sonatype.com <https://central.sonatype.com> . I've 
>> managed to login there using my sonatype login, but when attempting 
>> to upload bundle.jar, it fails with "Bundle has content that does NOT 
>> have a .pom file: META-INF" . I've also tried to upload 
>> gdal-3.12.0.jar and it fails with "Bundle has content that does NOT 
>> have a .pom file: META-INF, org/gdal/osr, org/gdal/gdalconst, 
>> org/gdal/gdal, org/gdal/gnm, org/gdal/ogr"
>>
>> Any Java guru that can help?
>>
>> Even
>>
>> -- 
>> http://www.spatialys.com  <http://www.spatialys.com>
>> My software is free, but my time generally not.
>> _______________________________________________
>> gdal-dev mailing list
>> gdal-dev at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>>
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev

-- 
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20251108/b2d69388/attachment-0001.htm>


More information about the gdal-dev mailing list