Skip to content

start developing with eclipse

vispax edited this page Jan 2, 2013 · 5 revisions
  1. Download and install Maven.
    For Windows users: follow the instructions on the website
    For Ubuntu users: you will find it in the ubuntu software center

  2. Install Egit and m2e (v>=1.2) eclipse plugins. The update site may depend on your Eclipse version, this are suitable for Eclipse v3.8 (Indigo), they should work also for older versions, not sure for v.4.2 (Juno)

http://download.eclipse.org/technology/m2e/releases
http://download.eclipse.org/egit/updates

  1. With Eclipse go to File>Import>From Git, select URI and paste the project clone URI (https://github.com/vispax/kd-cloud.git), chose the branches you need (master should be fine), select the folder where to place the code. Then select Import as general project and under working directory chose weka-stripped.

  2. Right click on the new project>Configure>Convert to maven project. Then againg right click>Run as>Maven install

  3. Repeat 3 and 4, but this time import from local repo and not from URI, choosing kdcloud-lib and kdcloud-engine

  4. Finally import kdcloud-webservice in the same way but run it as maven build. In the goal section put gae:unpack. This will download the GAE SDK

  5. Go to Run>Run configurations, duplicate the kdcloud-webservice configuration changing the goal. gae:run will run the development server, gae:deploy will deploy the application. Name the application properly.

  6. To be able to deploy the application set application id and version in the properties section in kdcloud-webservice/pom.xml. You must also place your gae user credential in the maven settings.xml file, located under /home/<your-user>/.m2 (hidden directory). On windows it should be under C:\\Users\<your-user>\.m2. Under the servers section put the following snippet

     <server>
         <id>appengine.google.com</id>
         <username>MyEmail@gmail.com</username>
         <password>MyPassword</password>
     </server>
    

Troubleshooting

If you experience build path issues try right click on the project>maven>update project.

Clone this wiki locally