-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
protobuf-maven-plugin Config Causes Protoc Execution Error on Linux Systems #11236
Comments
The exe extension is a file format for plugins, as it is a plugin for the protoc compiler and it works on Linux also.
I found a similar reported error for Alpine Linux container here. Can you confirm which flavor of Linux you are using? |
protoc-3.7.1 is really old, from 2019. But I don't think that is likely to be the cause. Can you try using our examples and seeing if they build? https://github.com/grpc/grpc-java/blob/master/examples/pom.xml FWIW, nothing here is actually grpc-java, as we don't maintain the maven plugin nor protoc itself. |
System Information: Linux bd937df84756 5.4.262-1.el7.elrepo.x86_64 #1 SMP Wed Nov 29 00:56:30 EST 2023 x86_64 Linux To verify the existence of the protoc file, I entered the container and found the file protoc-3.17.2-linux-x86_64.exe (I switched the version). Even though the file exists, when I navigate to its directory and execute the command: bash Download and unzip the file: bash bash After performing the above steps, when I execute the command: bash |
Using When you copied the file to |
No response to provide more information, so closing. I'm actually hoping it was resolved and they just didn't get back to us. More information can be provided and then we can reopen. |
I am facing an issue with the protobuf-maven-plugin in a Spring Boot project that integrates gRPC. The plugin is configured as follows in the pom.xml:
org.xolstice.maven.plugins protobuf-maven-plugin 0.6.1 com.google.protobuf:protoc:3.7.1:exe:${os.detected.classifier} The problem arises when the CI/CD pipeline, which runs on a Linux environment, attempts to compile and package the application. The error message indicates that it's trying to execute a .exe file, which is not compatible with Linux:An error occurred while invoking protoc: Error while executing process.: Cannot run program "protoc-3.7.1-linux-x86_64.exe": error=2, No such file or directory -> [Help 1]
Since Linux cannot execute .exe files, the build fails. How can this issue be resolved to ensure that the protobuf-maven-plugin correctly identifies and uses the appropriate protoc binary for Linux during the process?
The text was updated successfully, but these errors were encountered: