THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- Grab the sources from svnor download servicemix source distribution.
- Open a command line and change to the source root folder. Execute the following Maven 2 command to ready the project for Eclipse. It will take around two minutes.
In case you did never use Maven before and get errors stating that some plugins or the like are missing, like for example:Code Block mvn eclipse:eclipse
execute the commands stated under "Build ServiceMix..." in the chapters Windows / Unix source installation:Code Block [INFO] Searching repository for plugin with prefix: 'eclipse'. Downloading: http://mirrors.sunsite.dk/maven2/org/apache/servicemix/tooling/jbi-maven-plugin/3.0-incubating/jbi-maven-plugin-3.0-incubating.jar [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Plugin could not be found - check that the goal name is correct: Unable to download the artifact from any repository
and then retry.Code Block mvn -Dprofile=step1 mvn -Dprofile=step2
In Eclipse:
- From the "File" menu select "Import".
- Select "Existing Projects into Workspace" and click "Next"
- 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). Un-checking the option "Copy projects into workspace" allows you to automatically always edit the current version of the SVN checkout folder, thus avoiding an import after each SVN update. Click "Finish" in the Import window; the import takes around three minutes.
- From the "Windows" menu and click "Preferences"
The Preferences window will pop-up.
Click on the "Java" plus sign and change to "Compiler".
Compiler compliance level must be 5.0, pull down menu and select.
Check the "Use default compliance settings" box.
- Then check under "Installed JREs" that you have JDK 5, e.g., jre_1.5.x
- Click on "Build Path" and then select "Classpath Variables".
- Click on "New" button to right
A pop-up appears.
Enter the Name: M2_REPO
Enter the Path of your local maven repository, usually located in <your home directory>\.m2, for example:
C:\Documents and Settings\exjobb\.m2\repository
- Click "OK" button. The necessary build takes around three minutes.
...