Sunday, September 2, 2007

Using an Eclipse plugin for Maven

There are two ways to use Maven and Eclipse:
1. Eclipse as the editor, and Maven command line for commands, or
2. Using an Eclipse plugin for Maven
Use the first one if you're much more comfortable with using the command line for your maven executions, but would like to take advantage of eclipse' features ( code complete, refactoring, etc ). Use the second one if you want eclipse to handle all these things - creation to editing to execution.

To do so, you must install an eclipse plugin for maven. For example, to install the m2eclipse plugin, go to

Help > Software Updates > Find and Install > Search for new features to install.

Then from there, clicked on the "New Remote Site" button and enter a name ( i.e m2eclipse ) and the url "http://m2eclipse.codehaus.org/". Then just click "next" till you reach "finish".

No comments: