Search code examples
maven-2m2e

Maven2_Builder vs. Maven Project Builder


I inherited a project that relies on Maven 2 to build it. Via project's Properties > Builders I can see that it has two builders, in this order:

  1. Maven2_Builder
  2. Maven Project Builder

I thought that there should be only one Maven builder...

  1. Why two?
  2. What the relation between the two?
  3. Using the m2e plugin, I can clean the project at any given time via the project's context menu Run As > 6 Maven Clean. Does this mean Eclipse's Project > Clean... is no longer relevant?

Solution

  • Looks like you are using Eclipse with M2E. These days that works very well.

    Before one would run

    mvn eclipse:eclipse
    

    Which would generate the typical Eclipse configuration files.

    These days, just use the Eclipse Import as Maven Project and all necessary files are created.