Use protobuf version 2.5.0
Homebrew recently updated my machine's protoc to 2.5.0 during an upgrade. The new generated .java files in my module require protobuf-java version 2.5.0 because they reference a new interface com.google.protobuf.Parser. I had a second module that used the first module with the protobuf classes, but also uses akka-remote. Maven decided to prefer akka-remote's dependency and my build failed.
I suspect others will stumble upon this problem too, so I recommend bumping the dependency in akka to protobuf 2.5.0.
I suspect others will stumble upon this problem too, so I recommend bumping the dependency in akka to protobuf 2.5.0.
Leave a comment
for other users that stumble upon this issue, this is how it manifests:
[ERROR] error: error while loading Event, Missing dependency 'class com.google.protobuf.Parser', required by EventProtos$Event.class
The workaround is to explicitly depend on protobuf-java 2.5.0 by the module that is failing, which will win against akka-remote's conflicting preference.
[ERROR] error: error while loading Event, Missing dependency 'class com.google.protobuf.Parser', required by EventProtos$Event.class
The workaround is to explicitly depend on protobuf-java 2.5.0 by the module that is failing, which will win against akka-remote's conflicting preference.
There is a patch for this available here:
https://github.com/dan-cx/akka/tree/wip-3154-update-protobuf-dependency
https://github.com/dan-cx/akka/tree/wip-3154-update-protobuf-dependency
on 2013-09-11 02:49 *
By bjorn.antonsson@typesafe.com
Assigned to set to bjorn.antonsson@typesafe.com