Difference between Eclipse's "clean project" and Maven's "mvn clean" in m2e

balteo picture balteo · Jan 13, 2012 · Viewed 12.2k times · Source

I use M2e + Eclipse + Maven and I would like to know what the difference is between:

  • running "mvn clean" in a terminal and
  • running "clean project" from Eclipse?

Can anyone please advise?

Answer

Giorgos Dimtsas picture Giorgos Dimtsas · Jan 13, 2012

From some quick tests, it seems that Eclipse's clean project is only clearing out the folders that are set as output folder in the project's preferences, whereas maven's clean is deleting the /target folder completely.