Maven 清理安装 – 由于文件被另一个进程占用而导致访问被拒绝异常

huangapple 未分类评论48阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2020年4月10日 22:17:48
  • 转载请务必保留本文链接:https://java.coder-hub.com/61142222.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定