Skip to content

Building Apache Camel

aborkar-ibm edited this page Dec 22, 2017 · 44 revisions

Building Apache Camel

The instructions provided below specify the steps to build Apache Camel version 2.20.1 on Linux on IBM Z for the following distributions:

  • RHEL (7.1, 7.2, 7.3, 7.4)
  • SLES (12, 12 SP1, 12 SP2, 12 SP3)
  • Ubuntu (16.04, 17.04, 17.10)

General Notes:

  • When following the steps below please use a standard permission user unless otherwise specified.

  • A directory /<source_root>/ will be referred to in these instructions, this is a temporary writable directory anywhere you'd like to place it.

Step 1: Building and Installing Apache Camel

1.1) Install the Dependencies

  • RHEL (7.1, 7.2, 7.3, 7.4)

    • With IBM SDK:

      sudo yum install java-1.8.0-ibm java-1.8.0-ibm-devel tar wget 
      
    • With Open JDK:

      sudo yum install java-1.8.0-openjdk-devel.s390x tar wget 
      
  • SLES 12

    • With IBM SDK:
      sudo zypper install tar wget 
      
      Download and install IBM Java 8 from here
  • SLES (12, 12 SP1, 12 SP2, 12 SP3)

    • With IBM SDK:
      sudo zypper install java-1_8_0-ibm java-1_8_0-ibm-devel tar wget 
      
    • With Open JDK:
      sudo zypper install java-1_8_0-openjdk-devel tar wget 
      
  • Ubuntu (16.04, 17.04, 17.10)

    • With IBM SDK:

      sudo apt-get update
      sudo apt-get install maven tar wget 
      

      Download and install IBM Java 8 from here

    • With Open JDK

      sudo apt-get update
      sudo apt-get install maven tar wget openjdk-8-jdk
      

1.2) Install Maven 3.3.9 for RHEL and SLES

cd /<source_root>/
wget https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.3.9/apache-maven-3.3.9-bin.tar.gz
tar -xvzf apache-maven-3.3.9-bin.tar.gz
export M2_HOME=/<source_root>/apache-maven-3.3.9
export PATH=$M2_HOME/bin:$PATH

1.3) Set environment variables

export JAVA_HOME=<path to java>
export MAVEN_OPTS="-Xms1024m"        #Only for Open JDK
export MAVEN_OPTS="-Xmx1024m"        #Only for IBM SDK
export PATH=$JAVA_HOME/bin:$PATH

1.4) Build and install Apache Camel 2.20.1

cd /<source_root>/
wget https://github.com/apache/camel/archive/camel-2.20.1.tar.gz
tar -xvzf camel-2.20.1.tar.gz
mv camel-camel-2.20.1 camel
cd camel/apache-camel
mvn clean install -fn

On Successful build "apache-camel-2.20.1.tar.gz" will be created in /<source_root>/camel/apache-camel/target/ folder. Extract the package to use Apache Camel framework. Refer to examples in /apache-camel-2.20.1/examples/ folder. Each example has a README which explains steps to execute.

References:

http://camel.apache.org/

Clone this wiki locally