Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: HDD space requirements refined. Deleted last section as Guillaume and me se no sense in using JAR instead of .class

...

Pre-Installation Requirements

Hardware:

  • 52 Around 25 MB of free disk space for the ServiceMix 3.x binary distributionsources.18
  • Roughly 250 MB of free disk space for the ServiceMix 3.x source or developer's distributionscomplete build (Eclipse plugin and ServiceMix binaries) produced by Maven and further 200 MB for the dependencies Maven downloads during building. As a lot of small files are produced, the exact space demands depend greatly on your cluster utilisation ratio.

Operating Systems:

  • Windows: Windows XP SP2, Windows 2000.
  • Unix: Ubuntu Linux, Powerdog Linux, MacOS, AIX, HP-UX, Solaris, any Unix platform that supports Java.

...

  • Java Developer Kit (JDK) 1.5.x (Java 5) for compiling/building.
  • The JAVA_HOME environment variable must be set to the directory where the JDK is installed, e.g., c:\Program Files\jsdk.1.5.x
  • Maven 2.0.4 or greater.
  • Eclipse 3.x or greater.

...

  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.

...

Redo this until no class/JAR is missing any more.

Configuring Eclipse

Updating Eclipse from Trunk

...

.