Can't build artifacts on IntelliJ IDEA 2017.2.4
Answered
I'm not quite sure if the IDE is the problem, but i can't find another reason why it bugs.
After I start the computer and open IntelliJ I can build the artifcats normaly, but after some compiles it says:
Warning:Artifacts builder: Cannot delete file 'C:/path/artifact.jar'
and also:
java.io.FileNotFoundException: C:/path/artifact.jar (Acess Denied)
And I can't even manualy delete the file because I need administrator permissions, although I have it. I can only delete the file if I reboot the computer.
I have already tried to invalidad cache/restart, but no result.
Another detail that could have been causing it is that i upload the jar to AWS Lambda, I don't know if it can block the file somehow.
Thank You.
Please sign in to leave a comment.
Use https://docs.microsoft.com/en-us/sysinternals/downloads/handle or similar tool to find which process is locking the file. It could be some antivirus, backup software, disk defragmenter or some other tool.
Thank you very much! Handle really did shown the problem. Recently Google disable the google drive app for computers and put "Backup and Sync" instead, turns out that it was locking the file. Thanks again.