I have used IntelliJ's maven plugin to build my project with mvn clean install
.It fails on clean
due to problems deleting certain folders within the target-directory.
I had this error multiple times and I could always solve it by utilizing unlocker or bash rm -rf <dir>
, but not this time.
These are the things I tried to delete the folders:
windows explorer > right-click > delete:
seems to do nothing, not even output an error
cygwin > bash rm -rf: rm:
cannot remove 'tiny_mce/plugins/fullscreen': File exists
rm: cannot remove 'tiny_mce/plugins/iespell': Directory not empty
unlocker > delete:
eclipse/intellij > delete
Java IOException: cannot delete...
I hope there are other options since I cannot continue my work on my local machine as long as I have this problem. And I certainly do not want to switch my workspace and setup everything from the beginning under a new path. This can't be the solution!
Update:
Moving the folder to another location
Strangely, it worked. I still cannot delete that folder, but I could continue my work. However, I want it removed...