Windows – I cannot remove ‘target’ folder on Windows 7 generated by Maven

mavenpermissionswindows 7

I am getting a strange error since I compiled, cleaned and recompiled a project with Maven 3.1.1 using Windows 7. Basically the 'target' folder generated is no more "removable" and it looks like has no more owner. I have tried to associate an owner to it following the steps here: http://technet.microsoft.com/en-us/library/cc753659.aspx but without any luck and if I double click on this folder I am still getting: "Access is denied.". Any idea how to make this folder normal?

Best Answer

Well, for not logical reasons this has worked for me:

from "cmd", on a parent folder of the corrupted folder:

Icacls * /T /C /grant system:F
Related Question