英文:
Maven Clean Install - Access Denied Exception due to file being held by another process
问题
我有一个POM文件,看起来是要安装一些插件。每次MCI在一个插件上崩溃,显示访问被拒绝的问题。我发现,如果我把它崩溃的那个插件移出来,放到它自己的文件中,然后运行原始的POM文件,它会通过。如果我尝试在这之后立即运行第二个POM文件,它会失败,但是如果我等大约10秒再运行它,它会通过。
因此,似乎那个导致崩溃的插件无法更新EAR文件,因为它仍然被另一个进程占用着。这是一个非常奇怪的问题,我以前从未见过,而且只在最近一周开始出现。
有人以前遇到过类似的情况吗?我不记得在系统上做过任何更改来引起这个问题,但我有可能做过些什么。
英文:
I have a pom file that looks to install a couple of plugins. MCI keeps crashing on one plugin with an access denied issue every time. What I have found is that if I take out the plugin that it crashes on and put that in it's own file, then run the original pom file it will pass. If I attempt to run the second pom file straight after it will fail BUT if I wait about 10 seconds and run it, it will pass.
So it seems that plugin that crashes cannot update the ear file due to it still being held onto by another process. This is a very strange issue which I have never seen before and only started happening in the last week.
Has anyone experienced this before? I don't remember changing anything on my system to cause this but it's possible I have.
专注分享java语言的经验与见解,让所有开发者获益!
评论