forked from volkansahin/lider-console
-
Notifications
You must be signed in to change notification settings - Fork 0
01. Setup Development Environment
Emre Akkaya edited this page Dec 19, 2016
·
1 revision
JDK8
- Install open JDK via
sudo apt-get install openjdk-8-jdk
Git
- Documentation about installing and configuring git can be found here and here
- Git home (download, docs)
Maven 3
- Get Maven 3 (Specifically, at least version 3.1.1 is needed to use static code analyzers and maven-tycho plugin!).
- Maven home (download, docs)
Eclipse
- Download and extract Eclipse RCP Mars or Luna
- Orbit repository is needed to handle OSGI dependencies.
- Before installing Orbit on Eclipse, we need to find the correct repository belonging to installed Eclipse version from Orbit downloads site.
- Then we need to add this URL to Eclipse via 'Help --> Install New Software --> Add'.
- Finally, required bundles can be installed. (At the moment, jackson, apache httpcomponents and poi bundles are required.)
- Restart Eclipse after successfull installation.
- Clone lider-console project by running
git clone https://github.com/Agem-Bilisim/lider-console.git
. - Change directory to scripts/ and run
./build-lider-console.sh
to build the project and generate third party dependencies. This command will generate OSGI bundles under lider-console-dependencies/target/repository/ directory. - Import the project into Eclipse as 'Existing Maven Projects'.
- Go to 'Help --> Install New Software --> Add', enter http://directory.apache.org/studio/update as location and select Apache Directory Studio in the list, then install selected bundles.
- Again, go to 'Help --> Install New Software --> Add' and add generated third party dependencies (Step 3) by adding lider-console-dependencies/target/repository/ directory as local repository, finally select and install all bundles.
- Restart Eclipse and run the application as Eclipse RCP Application.
Warning: When the project is run for the first time, Eclipse might throw an exception. If this error occurs, go to 'Run --> Debug Configurations...' and on the 'Plugins' tab click 'Add Required Libraries' to allow Eclipse to use all required bundles.