nkalmar edited a comment on issue #945: [ZOOKEEPER-3389] Zookeeper does not
export all required packages in OSGi (needed for curator)
URL: https://github.com/apache/zookeeper/pull/945#issuecomment-492677907
There will be 2 jars upon release, zookeeper-jute and zookeeper-server.
zookeeper-jute is the serialization library (just like protobuf).
zookeeper-server depends on zookeeper-jute.
Since jute (originally) was an independent project, it was always kept
seperate. But it evolved with zookeeper, hence the same package names. It's not
ideal, and even causes problems like this one with OSGi.
The jute classes are generated, just like in protobuf.
I'm afraid merging the packages together is not.. uhm, preferable, to say.
The most plausible solution out of these for me seems to be changing jute
package names. Those should be all private to ZooKeeper, so we do not change
public API. But I would be happy if we found another solution.
Unfortunately I don't know much about OSGi, so I don't know what the best
solution would be here. But zookeeper-server needs zookeeper-jute to serialize
the messages between nodes.
Maven automatically downloads zookeeper-jute when zookeeper-server is used,
as it is a dependency for it. I'm not sure how OSGi solves this.
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org
With regards,
Apache Git Services