dubbo icon indicating copy to clipboard operation
dubbo copied to clipboard

[Bug] dubbo-maven-pluggin cannot successfully compile google.protobuf.Empty into 'void' keyword

Open LeonMinkus opened this issue 4 months ago • 1 comments

Pre-check

  • [x] I am sure that all the content I provide is in English.

Search before asking

  • [x] I had searched in the issues and found no similar issues.

Apache Dubbo Component

Java SDK (apache/dubbo)

Dubbo Version

dubbo Version:3.3.5 dubbo-maven-pluggin version:3.3.5

Steps to reproduce this issue

issue discription : i use protobuf development style of triple protocal of dubbo 3.3.5 ,i build a new maven project to manage proto file and compiled java source code, finnally commit it to my local maven repsitory so that i can make full use of the compiled code.but when i define rpc service 'rpc xx (XXModel) returns (google.protobuf.Empty)' ,and then dubbo-maven-pluggin compile,after serval times checked it gengeate 'public xx(XXModel)' left void 'keyWord'

so it possible caused by dubbo-maven-pluggin

What you expected to happen

the void keyword appear successfully!!!

Anything else

No response

Are you willing to submit a pull request to fix on your own?

  • [ ] Yes I am willing to submit a pull request on my own!

Code of Conduct

LeonMinkus avatar Aug 08 '25 13:08 LeonMinkus

this is some pluggin maven configration
<groupId>org.apache.dubbo</groupId> <artifactId>dubbo-maven-plugin</artifactId> 3.3.5 <outputDir>${project.build.directory}/generated-sources/protobuf/java</outputDir> <protoSourceDir>${basedir}/src/main/proto</protoSourceDir> <protocVersion>3.19.4</protocVersion> <dubboGenerateType>tri</dubboGenerateType> compile <groupId>kr.motd.maven</groupId> <artifactId>os-maven-plugin</artifactId> 1.7.0 this is proto file

Image this is generated java code Image

LeonMinkus avatar Aug 08 '25 14:08 LeonMinkus