devs/OrbisGIS_src

Install OrbisGIS sources with  Eclipse

Step 1

Install Eclipse, Subclipse and Maven plugin.

Download extract and run Eclipse Classic -  http://www.eclipse.org/downloads/

1- Install subclipse : In Eclipse:

  • close Welcome tab
  • eclipse->Help->Install new software...->Add and Enter:
    • name:subclipse
    • Location:http://subclipse.tigris.org/update_1.6.x

  • Check
    • Optional JNA Library
    • Subclipse

  • Next
  • Next
  • Check "I Accept the terms of the license agreement"
  • Finish
  • Click ok on warning message
  • Click 'Yes' to restart eclipse

2- Install m2e : In Eclipse:

  • eclipse->Help->Install new software...->Add and Enter:
    • name:m2e
    • Location:http://m2eclipse.sonatype.org/sites/m2e
  • Check Maven Integration for eclipse
  • Next
  • Next
  • Check "I Accept the terms of the license agreement"
  • Finish
  • Click ok on warning message
  • Click 'Yes' to restart eclipse

3- Install m2e-extras : In Eclipse:

  • close Welcome tab
  • eclipse->Help->Install new software...->Add and Enter:
    • name:m2e-extras
    • Location:http://m2eclipse.sonatype.org/sites/m2e-extras
  • Check
    • Maven Integration for eclipse
      • Maven SCM handler for eclipse
  • Next
  • Next
  • Check "I Accept the terms of the license agreement"
  • Finish
  • Click ok on warning message
  • Click Yes to restart eclipse
  • Click ok on Subversion Native Library Not Available message

Optional: To correct Subversion Native Library Not Available



problem edit eclipse.ini file locate in you eclipse folder. Add Java Environment varaible (-Djava.library.path=/usr/lib/jni)
Here is an example of this file:

-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.200.v20090520
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Djava.library.path=/usr/lib/jni
-Xms40m
-Xmx256m

Step 2

In Eclipse, "File/New Project", choose "Maven/ Checkout Maven Projects from SCM".


Set the svn url " http://geosysin.iict.ch/irstv-svn/trunk/orbisgis" and wait. It will take some times. It depends on your network speed and your computer properties.


Step 3

In Eclipse you will show 6 projects. Be careful do not delete the root project named platform. Have fun to explore :

  • commons
  • gdms
  • grap
  • h2spatial
  • orbisgis-core


Step 4

To start OrbisGIS, run the class org.orbisgis.core.Main

Install OrbisGIS sources with maven (thanks to Max)

In a terminal do :

svn checkout  http://geosysin.iict.ch/irstv-svn/trunk/orbisgis

mvn -Dmaven.test.skip=true install


Attachments