Saturday, September 20, 2008

Maven integration for Eclipse

I've been getting into using Eclipse more this month, moving away from my normal vi/vim/nano way of doing things. Its not that I'm particularly against IDEs, its  just that I  spend most of my time remotely connected to AIX, HP-UX, Solaris, and other *nix machines quickly editing files and hence find light weight (resource wise) editors more sensible. When it comes to working with large code bases however my use of these editors slows my progress down considerably.

The only thing that was holding me back from setting up Eclipse with the projects I like to work on has been getting all the code to load correctly and not end up with loads of errors due to not having all the jars loaded. Now however I've started to use m2eclipse to automatically setup my projects.

The project is by all means not new, many of you are probably already quite familiar with it. In case your not however here is a quick introduction to setting up a maven based project in Eclipse.
  • Goto the Maven Integration for Eclipse site ( and install the components required for your Eclipse installation. Alternatively use Eclipse's find & install feature to acquire the plugin.
  •  Once installed follow the next three steps to load your project:
  1. Click File -> New -> Other...
  2. Select "Maven -> Checkout Maven Projects from SCM." from the list.

  3. Select the SCM option for your project, then provide the URL to the SCM, click finish.

Your project resources will now be downloaded and setup :)

Hope this little demo was useful, cheers.

No comments: