You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-0ubuntu1.16.04.2-b11)
OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)
What did you do? (Sorry for my poor English.)
I want to creat a new project in Opendaylight which will use gRPC/protobuf. The environment is apache/karaf, but these dependencies(grpc-netty, grpc-protobuf, grpc-stub) are only ordinary jar packages, I write these dependencies in my bundle pom file, when running it will give a note "jar is not a bundle". So I try to wrap these jar packages in a bundle,.
Unfortunately, when running, it always give an error as below. After I add dependency which is about this package, it will give the same error but with another package name. For example errorprone,instrumentation,bootstrap, protobuf-java-util, netty and etc. There are so many dependencies, perhaps infinity, I think when I add a new dependency named A in pom file, A's denpendecy will also need to be added. could not be resolved. Reason: Missing Constraint: Import-Package: io.netty.buffer; version="[4.1.0,5.0.0)"
What did you expect to see?
How to slove this problem?Who can help me? How use grpc/protobuf in apache karaf?
What did you see instead?
The text was updated successfully, but these errors were encountered:
It seems this is a duplicate of #1565, since "bundle" seems likely to be an OSGi bundle. If something different about this bundle than OSGi bundles, please mention it.
Please answer these questions before submitting your issue.
What version of gRPC are you using?
I use mvn to build my project and protobuf-mavne-plugin to generate code as the grpc-java/READMME.md guide. The config is shown below.
What JVM are you using (
java -version
)?What did you do? (Sorry for my poor English.)
I want to creat a new project in Opendaylight which will use gRPC/protobuf. The environment is apache/karaf, but these dependencies(grpc-netty, grpc-protobuf, grpc-stub) are only ordinary jar packages, I write these dependencies in my bundle pom file, when running it will give a note "jar is not a bundle". So I try to wrap these jar packages in a bundle,.
I use maven-bundle-plugin according to the guide.
Unfortunately, when running, it always give an error as below. After I add dependency which is about this package, it will give the same error but with another package name. For example errorprone,instrumentation,bootstrap, protobuf-java-util, netty and etc. There are so many dependencies, perhaps infinity, I think when I add a new dependency named A in pom file, A's denpendecy will also need to be added.
could not be resolved. Reason: Missing Constraint: Import-Package: io.netty.buffer; version="[4.1.0,5.0.0)"
What did you expect to see?
How to slove this problem?Who can help me? How use grpc/protobuf in apache karaf?
What did you see instead?
The text was updated successfully, but these errors were encountered: