-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reading PBF based maps depends on old Protobuf library #3083
Comments
Having the same problem, Linux, OpenJDK 21 |
I think that should be fixed in the dependency (which still have 3.25.0) eg. https://search.maven.org/artifact/org.openstreetmap.osmosis/osmosis-pbf2/0.49.2/jar and https://search.maven.org/artifact/org.openstreetmap.osmosis/osmosis-pbf/0.49.2/jar even updating to the latest release in Lines 108 to 112 in 4e232ac
will not bring what you want, also note: https://github.com/openstreetmap/osmosis?tab=readme-ov-file#status |
I've asked a related question at the osmosis repo. |
https://github.com/openstreetmap/OSM-binary as mentioned in openstreetmap/osmosis#97 ? For us: <dependency>
<groupId>org.openstreetmap.pbf</groupId>
<artifactId>osmpbf</artifactId>
<version>1.5.0</version>
</dependency> |
Looks like a 1.6.0 release with updated dependencies is imminent: openstreetmap/OSM-binary#87 Edit: already available https://repo1.maven.org/maven2/org/openstreetmap/pbf/osmpbf/1.6.0/ |
Describe the bug
Osmosis dependency used by Graphhopper depends on protobuf-java version 3.25.5 max.
My project depends on protobuf-java: 4.28.2 and overwrites dependency version of the one defined by osmosis.
Project fails because
makeExtensionsImmutable
method is not present anymore in GeneratedMessage in any version of ProtoBuf higher than 3.25.5.To Reproduce
I have a higher protobuf-java dependency in my project.
I read PBF formatted OSM maps from
http://download.geofabrik.de/europe/netherlands-latest.osm.pbf
I import it with GraphHopper.
It fails with java.lang.NoSuchMethodError for
makeExtensionsImmutable
.Expected behavior
No errors with latest protobuf version in project.
System Information
JVM 17 on macOS
The text was updated successfully, but these errors were encountered: