created new maven project on eclipse. before doing any changes, did a maven clean and it was successful. But target folder didn't get delete. (Tried refreshing, restarting IDE) Should it be deleted after clean success? if yes then what could possibly went wrong?
-
What's inside the target folder?Seelenvirtuose– Seelenvirtuose2016-03-12 18:52:42 +00:00Commented Mar 12, 2016 at 18:52
-
m2e-wtp>web-resources>META-INF>maven>MANIFEST.MFNipun Thathsara– Nipun Thathsara2016-03-12 18:58:48 +00:00Commented Mar 12, 2016 at 18:58
-
This is automagically generated by the M2E plugin.Seelenvirtuose– Seelenvirtuose2016-03-12 18:59:17 +00:00Commented Mar 12, 2016 at 18:59
-
So is it okay to have target folder not being empty even after a successful maven clean?Nipun Thathsara– Nipun Thathsara2016-03-12 19:02:27 +00:00Commented Mar 12, 2016 at 19:02
-
It is OK in a sense that it will not hurt, but generally you should investigate what is being locked and whyGermann Arlington– Germann Arlington2016-03-12 19:09:25 +00:00Commented Mar 12, 2016 at 19:09
|
Show 3 more comments
1 Answer
You have to disable the automatic rebuild in eclipse. Otherwise Eclipse will rebuild right after the clean and therefore create the target folder again.
You can disable it unter Project > Build automatically"
1 Comment
Nipun Thathsara
It worked. Thanks a lot! Right after disabling the Auto build in eclipse, did a maven clean and target folder got deleted.