Eclipse and maven¶
Following tutorial shows how to configure Eclipse to work with Maven and use it to run ActiveQuant examples.
You will need
- Java 1.6 or higher (Java 1.5 will not work!)
- Recent version of Eclipse platform (as a build and development environment)
- Eclipse Maven plugin (builder and dependency manager)
- Subclipse (eclipse 3.4) or Subversive (eclipse 3.5) plugin (to access SVN repository)
Following sections explain in detail all these steps, except Java 1.6 installation. Decide which Eclipse version you will use, then follow the instructions from one of the sections below.
Eclipse 3.5 (Galileo)¶
Draft - work in progress!
- Download and install Eclipse 3.5
- Open dialog: Help/Install New Software. In the drop-down box named "Work With" choose "Galileo - http://download.eclipse.org/releases/galileo". List of available plugins will appear.
Find Collaboration group and expand it. Check "Subversive SVN Team Provider". Click Next. Accept license and click "Finish".
After the installation restart workbench. - Use menu "Window/Open Perspective/Other" to locate and open "SVN Repository Exploring". This will pop up a dialog "Subversive Connector Discovery". Choose SVN Kit 1.3.0. Then click "Next", accept the license and "Finish".
After installation is complete, restart the workbench. If during install you get security warning - ignore it (accept unsigned stuff). - Lets check that SVN works. Open SVN Repository Exploring perspective. Add new repository location by clicking on an icon with plus. Enter the following:
svn://activequant.org/opt/repositories/sandbox
as the URL, and click "Finish". In the tree find "activequant-examples/trunk", right-click on it and choose "Check Out". Now you should have a project in your workspace named "activequant-examples". - Switch to the "Java" perspective (Window/Open Perspective/Java"). You should see the checked out project source tree in the left panel.
- Time to install maven plugin. Go to Help/Install New Software and click on "Add" to add new update site:
http://q4e.googlecode.com/svn/trunk/updatesite-iam/
Give any name (Q4E works for me). Result will be the tree of available plugins. Open group "Core features" and check "Eclipse IAM" and "Eclipse IAM Help". Click Next, accept license, then "Finish".
Restart the workbench after installation is complete. - In Java perspective, right-click on activequant-examples project and select Maven2/Use Maven Dependency Management.
Wait patiently - this step first time triggers massive download, which is not obvious in eclipse (may look as eclipse hanging). Just wait. - At this point your project tree should look like a maven project, and you should see no "red flags" there. If it works, then your environment is set up correctly and you are good to go - checkout something else (e.g. P2 project), etc.