Thursday, July 23, 2009

How to Get the Maven Plugin for Eclipse

Maven is a Java Project Management tool that makes life a lot easier for java developers. You'll need it eventually specially if you are going to try out Project Darkstar development exclusively in Eclipse. To learn more about maven, visit the official website.

This how-to is for the online installation of the Maven plugin for Eclipse, meaning YOU WILL NEED AN ACTIVE INTERNET CONNECTION.

To install it, open Eclipse. Then, go to Help>Install New Software. Click the "Add" button.
Type in anything you want for the Name field... e.g. "maven2"
Paste this onto the Location field: "http://m2eclipse.sonatype.org/update/"
You may also choose to download stable development builds by pasting
"http://m2eclipse.sonatype.org/update-dev"

Wait for a bit while eclipse tries to locate the files needed for download.
When it's done checking, try clicking next.
YOU MAY NOTICE THAT IT CANNOT CONTINUE.
You need to uncheck the components mentioned in the Details - the ones it can't find.
From what I encountered, it was Maven Integration for AJDT and Maven SCM handler for Subclipse.

After this, you only need to click Finish. NOTE that sometimes the Finish Button doesn't become clickable. This is just a minor bug. Just click Cancel and do the whole process again.

No comments:

Post a Comment