Closed zhaopei0418 closed 1 month ago
Can you try without the protoSourceRoot option since the value for it you specified is the default anyway?
<protocArtifact>io.grpc:protoc-gen-grpc-java:1.64.0:exe:${os.detected.classifier}</protocArtifact>
That should not be a protocArtifact. It is overwriting the previous setting:
<protocArtifact>com.google.protobuf:protoc:3.25.1:exe:${os.detected.classifier}</protocArtifact>
Instead, you want to use protoc-gen-grpc-java as the pluginArtifact
. See the example pom.xml:
https://github.com/grpc/grpc-java/blob/b181e495ab0ffdc0cfa70679aaa8f7fe6b7a4985/examples/pom.xml#L102-L104
Seems like this is resolved. If not, comment, and it can be reopened.
manjaro linux
exec: mvn clean protobuf:compile
result: