THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
- Download servicemix source distribution.
- Put in the Eclipse tags:
maven -Dmaven.test.skip=true default eclipse - In Eclipse:
File>Import
Browse for the root directory, which is the directory in which you downloaded ServiceMix. - Select all the files in the Import pop-up window. They are probably already pre-selected for you (check box is checked).
- Click Finish.
- Windows>Preferences
The Preferences window will pop-up. - Click on the Java plus sign, then click on Build Path
then select Classpath Variables. - Click on New button to right
A pop-up appears.
Enter the Name: MAVEN_REPO
Enter the Path, which is your local maven repository, usually located in
your home directory .maven, for example:
C:\Documents and Settings\Lisa Malgeri\.maven\repository
...
- Now you can run an example:
a. In the Package Explorer find the Main class, which should be located in: servicemix-core/src/main/java/
under org.apache.servicemix/Main.java.
Double click on the main() class. - From the Run menu select "Run..."
- You will get a Run window pop-up
...
- , from there select Java Application
- Click on New button in botton left
Name the Project:
...
- any name you like, for example if you want to run the FilePoller application call it "filepoller".
- Click on arguments button: enter path of
...
- servicemix.xml file you want, e.g.,
C:\Program Files\servicemix-1.0.1\examples\file-binding
...
- Click Apply.
- Click Run