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

error "The process cannot access the file because it is being used by another process" #30

jorgheymans opened this issue Jul 14, 2017 · 5 comments


Copy link

jorgheymans commented Jul 14, 2017


We are seeing this error sporadically in our builds

14:24:11 [ERROR] Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.5.0:compile-custom (default) on project sdk: Unable to copy the file to c:\RC\Jenkins\workspace\sdk\shared\target\protoc-plugins: c:\RC\Jenkins\workspace\sdk\shared\target\protoc-plugins\protoc-3.1.0-windows-x86_64.exe (The process cannot access the file because it is being used by another process) -> [Help 1]

it does not happen all the time, and often a subsequent build will work fine but it's a bit annoying as you can understand.

the plugin is configured as such:

Copy link

I believe I have seen it a couple of times too and I suspect it is because of a virus scanner under Windows holding on to the file. However, I have an idea how to improve things when multiple plugin goals are being run in a sequence. I'll post an update when the new version is ready.

Copy link

jorgheymans commented Jul 19, 2017 via email

Copy link

do it resolved now? i meet this issue too, when i open the IDE(eclipse, intellij idea), it will always complain this during maven cli build

Copy link

I have committed a small change that I hope will fix the problem. Unfortunately, I cannot reproduce the problem on my current system, so I cannot tell if it's been fixed. Please give version 0.5.1 a try (I can see it's already been synced to Maven central).

Copy link

FYI haven't had the error for a good while now across our environments, so it seems that your fix did the trick thanks !

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

No branches or pull requests

3 participants