Eclipse IDE does not provide out of box support for Maven which is our favourite build tool these days. You can install m2eclipse plugin to provide code assist while editing pom.xml and support for building maven project from eclipse.
From Eclipse menu select help –> Install New Software –> Add and put following m2eclipse plugin url and click ok.
if you are using eclipse 3.5.1, above link might not work, try the one below
Agree to the licence agreement. installation will take some time and at the end you will be asked to restart your ide. click on restart button and you are done!