Skip to content
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 gives error "unable to clean up temporary proto file directory" #113

Open
ananta-code opened this issue Apr 12, 2023 · 2 comments

Comments

@ananta-code
Copy link

Hi,

i am using protobuf-maven-plugin in my application and i am using bazel to build the app .
suprisingly intermitently i am getting issue unable to clean up temporary proto file directory.

this is my protobuf plugin.

<plugins> <plugin> <groupId>org.xolstice.maven.plugins</groupId> <artifactId>protobuf-maven-plugin</artifactId> <version>0.6.1</version> <configuration> <writeDescriptorSet>true</writeDescriptorSet> <includeDependenciesInDescriptorSet>true</includeDependenciesInDescriptorSet> <descriptorSetOutputDirectory>${project.build.directory}</descriptorSetOutputDirectory> <descriptorSetFileName>total_trip_proto-descriptor-set.proto.bin</descriptorSetFileName> <clearOutputDirectory>false</clearOutputDirectory> <protocArtifact> com.google.protobuf:protoc:3.3.0:exe:${os.detected.classifier} </protocArtifact> <pluginId>grpc-java</pluginId> <pluginArtifact> io.grpc:protoc-gen-grpc-java:1.33.0:exe:${os.detected.classifier} </pluginArtifact> </configuration> <executions> <execution> <goals> <goal>compile</goal> <goal>compile-custom</goal> </goals> </execution> </executions> </plugin> </plugins>

@mgmeinwi
Copy link

mgmeinwi commented Dec 5, 2024

Hey, got the same problem. Do you have already solved it?
Greetings.

@Spence99
Copy link

Spence99 commented Feb 20, 2025

I had this same problem, and I was able to work around it by closing my IDE (VS code) and re-running mvn install. It is likely caused by some process using/looking at that directory, and causing the delete to fail.
When I use Eclipse, this doesn't occur, likely because I don't have the gbp folder loaded as a maven project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants