-
Notifications
You must be signed in to change notification settings - Fork 2.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
grpc compile fail with google-protobuf #12719
Comments
For convenience and to workaround this issue I tried to copy the google proto inside the project itself, but now I have this issue when using
Same package, but not same class loader. So I cannot find any way to make it work with the quarkus auto reload feature. 😞 |
I'm currently looking into this issue. I'm a bit surprised that copying the proto files doesn't work. protobuf-maven-plugin scans classpath and adds |
@gaetancollaud I created a pull request for it: #12797 |
Thanks I will have a look |
Describe the bug
I use GRPC and I use to google protobuf like for example timestamp.proto. I'm my other microservices (spring-boot), I easily include the maven dependency
com.google.protobuf:protobuf-java
and I can use the google proto. But with quarkus it doesn't work out of the box.Expected behavior
I can include the
com.google.protobuf:protobuf-java
dependencies and quakurs grpc extension will pick it up automatically.Actual behavior
Compilation failed with
To Reproduce
https://github.com/gaetancollaud/grpc-google-protobuf
You can look at the branch protobuf-maven-plugin where I disable the goal
generate-code
of thequarkus-maven-plugin
and where I manually configured theprotobuf-maven-plugin
. This version works and I can compile, but thenmvn quarkus:dev
auto reload is broken.Steps to reproduce the behavior:
mvn compile
Configuration
Nothing specific
Screenshots
No screenshot
Environment (please complete the following information):
uname -a
orver
: Linux gaetan-desktop 5.4.0-48-generic Adjust log colors, and do not log in color if the console is not in color #52-Ubuntu SMP Thu Sep 10 10:58:49 UTC 2020 x86_64 x86_64 x86_64 GNU/Linuxjava -version
: Java version: 11.0.8, vendor: GraalVM Community, runtime: /home/gaetan/.sdkman/candidates/java/20.2.0.r11-grlmvnw --version
orgradlew --version
): Apache Maven 3.6.3Additional context
No additional context
The text was updated successfully, but these errors were encountered: