I decided not to use maven in my project. So, I right-clicked it in Eclipse and then "Remove maven nature". Everything seems to be ok, but I cannot remove the target directory. If I delete it from within Eclipse it's just created again, if I delete it from Explorer the result is the same, as soon as I clean my project from Eclipse it's just created again.
Where am I wrong?
Thanks in advance.
It is not able to delete because you must be accessing some file from it. So simple solution would be to close any files which you might have opened from target folder [inside or outside eclipse]. Once you dont access the folder or any of its contents then folder shld get deleted.
rm command – removes a directory/folder along with all the files and sub-directories in it.
When “mvn clean” is executed, everything under “target” folder will be deleted.
Explanation. mvn clean command removes the target directory with all the build data before starting the build process.
Maven->Disable Dependency Management.
Build Path-> Configure Build Path -> Source Tab
. Untick "Allow output folder for source folders"If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With