Skip navigation

So you want to use Eclipse, Maven, and not have to duplicate Checkstyle, PMD, Findbugs, and all that jazz? Good luck. It’s *almost* black magic. Random eclipse update sites. Random projects. Clean, Install, hope it runs. So without further adieu, here is the list I use to reliably get my workspace up and running.

First, a note on plugins. There are three required plugins that most people get confused about.

  1. m2eclipse – provides base maven-eclipse integration
  2. m2eclipse-extras – provides integration for web tools platform
  3. m2eclipse-extensions – provides integration for checkstyle
However, unless you randomly find m2eclipse-extensions, you probably won’t come across it. It’s sort of buried. Searching for “maven eclipse” yields loads of useless links. Dead projects. Stuff you don’t need. Gah!
So here’s the order of installation:
  1. Install m2eclipse-0.10 (as of writing) : http://m2eclipse.sonatype.org/sites/archives/m2e-0.10.2.20100623-1649/
  2. Install m2eclipse-extras WTP integration (for version 0.10): http://m2eclipse.sonatype.org/sites/archives/m2e-extras-20101029/
  3. Install eclipse-cs: http://eclipse-cs.sourceforge.net/
  4. Install PMD-eclipse: http://pmd.sourceforge.net/eclipse/
  5. Install Findbugs-Eclipse: http://findbugs.sourceforge.net/manual/eclipse.html
  6. Install m2eclipse-extensions: http://code.google.com/p/m2e-extensions/
The reason 0.10 is required is because m2e-extensions only works with 0.10 (again, as of this writing).
Once you have all of these installed, if you have your project configured to use any of the checkstyle, pmd, or findbugs projects, reimporting the project should get things working for you.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.