You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

As part of switching to Apache Maven for building CloudStack, the .classpath and .project files used by Eclipse were removed. This page describes how to get CloudStack loaded into an Eclipse workspace.

Use a Recent Eclipse Build

These steps have been tested with Eclipse Indigo - it's suggested you use that or a newer build.

Start with a clean workspace

To minimize confusion, start with a clean workspace with no other projects.

Install M2E

This wiki page shows how to install the Maven integration for Eclipse plugin. (For those using Yoxos, just search for M2E and add it to your Eclipse build)

After installing the plugin, restart Eclipse.

Import CloudStack

Now you can import CloudStack using the M2E plugin:

  • Go to File->Import...
  • Under Maven select "Existing Maven Projects" and click Next
  • Browse to and select the root directory of the CloudStack source tree. Once selected, Eclipse will scan the source for pom.xml files. Make sure all are selected, then click the Finish button.

Eclipse will import the projects and build the code. At this point you should be able to develop and debug code as usual within Eclipse.

Bonus: Running CloudStack Through Eclipse

One bonus of the Maven integration is it is now easy to run and debug the CloudStack UI through Eclipse:

  • Go to Run->Debug Configurations...
  • In the left navigation, expand Maven and select "cloudstack-ui"
  • Click the Debug button.

Maven will download everything needed to run CloudStack with Jetty, build the code, and run the UI. You can connect to it via http://localhost:8080/client.

  • No labels