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
Am trying to generate java classes from protoc files, and get this error:
Multiple package definitions.
The proto file looks like:
syntax = "proto3"; option java_package = "io.myco.message"; package myco; message UserRecordUpdateResponseMessage { int32 int = 1; }
From my understanding the protoc file is valid.
The text was updated successfully, but these errors were encountered:
This is not a maven plugin error, it is a protoc error. Have you tried compiling your proto file with a command line protoc? I wonder if the error is going to go away if you put the package instruction before the option java_package?
package
option java_package
Sorry, something went wrong.
I didnt try changing the order. I instead removed the java_package statement, and the error is now gone.
java_package
No branches or pull requests
Am trying to generate java classes from protoc files, and get this error:
Multiple package definitions.
The proto file looks like:
From my understanding the protoc file is valid.
The text was updated successfully, but these errors were encountered: