Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: indention problem fixed

...

  1. Grab the sources from svnor download servicemix source distribution.
  2. 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.
    Code Block
    mvn eclipse:eclipse
    
    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
    [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
    
    execute the commands stated under "Build ServiceMix..." in the chapters Windows / Unix source installation:
    Code Block
    
    mvn -Dprofile=step1
    mvn -Dprofile=step2
    
    and then retry.

In Eclipse:

  1. From the "File" menu select "Import". 


     
  2.  Select "Existing Projects into Workspace" and click "Next" 


     
  3. 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.


     
  4. 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. 


     
  5. Then check under "Installed JREs" that you have JDK 5, e.g., jre_1.5.x 


     
  6. Click on "Build Path" and then select "Classpath Variables". 


     
  7. 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
     

     
  8. Click "OK" button. The necessary build takes around three minutes.

...