2

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?

8
  • What's inside the target folder? Commented Mar 12, 2016 at 18:52
  • m2e-wtp>web-resources>META-INF>maven>MANIFEST.MF Commented Mar 12, 2016 at 18:58
  • This is automagically generated by the M2E plugin. Commented Mar 12, 2016 at 18:59
  • So is it okay to have target folder not being empty even after a successful maven clean? Commented 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 why Commented Mar 12, 2016 at 19:09

1 Answer 1

4

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"

Sign up to request clarification or add additional context in comments.

1 Comment

It worked. Thanks a lot! Right after disabling the Auto build in eclipse, did a maven clean and target folder got deleted.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.