Problem: Getting Apache Felix into Eclipse for Development and Testing.

Solution :
Step 1) Intaling the Plugins into Eclipse:
The Plugins we will need for this are (Links are to the plugin site)

  1. Subclipse
  2. Maven (note make sure to install SCM for SVN)
Step 2) Setup Maven:
First you need to change Eclipse default run time to the JDK. This is done in "Windows-->Preferences-->Installed JRE's". Add the file path to your JDK and untick the default JRE, this will force all things to run in the JDK.

Also is may be necessary (it has not been determined to be, but is reccommended) to run in Eclipse itself in the JDK, so alter the eclipse.ini file found in the Eclipse.exe folder to include the arguments with a link to the jdk virtual machine i.e.
"-vm
C:\Program Files\Java\jdk1.6.0_13\bin\javaw.exe"
(Note: The end line character is not a typo, it is a must)

Next you need to setup the Proxy for Maven to download through this is done by editing (or creating) the ~/.m2/settings.xml file to include the proxy information





myproxy
true
http
tur-cache.massey.ac.nz
8080
User
1111





Step 3) Setup Subclipse:
Setting up the Subversion Proxy in ~/Application Data/Subversion/servers file. It is pretty straight forward, just do all the editing under the "[global]" tag.

Step 4) Get Felix:
Adding the Felix SVN repository (<-----) to your subclipse. Right click Felix-->trunk, and select checkout as Maven Project.

(Note: This will build all the projects (a lot of them) and add them to your workspace. Go get a coffee, this is going to take a while!)

Step 4.1) Once the projects have been downloaded to setup the sources folders "Right-Click-->Maven-->Update Project Configuration"

Step 5) Check it is Working: To check that you have a working copy of Felix, open up a few of the Maven Projects created and right click --> Run As --> Maven :: Test. This will run their test suits and hopefully you will get the all green passes from JUnit that I like to see.

0 comments:

Newer Post Older Post Home