Skip to content

Building Apache Camel

aborkar-ibm edited this page Jun 4, 2021 · 44 revisions

Building Apache Camel

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.

Apache Camel binary releases are available here. To use these binaries, different Java flavors can be installed on mentioned distributions.

Note: Apache Camel(v3.9.0) was verified at the time of creation of these instructions

1. Install Java

   export SOURCE_ROOT=/<source_root>/
  • RHEL (7.7, 7.8, 7.9, 8.1, 8.2)

    • With Open JDK:
      sudo yum install -y java-11-openjdk java-11-openjdk-devel maven
      
    • With AdoptOpenJDK 11
      sudo yum install -y wget tar maven
      • Download and install AdoptOpenJDK 11 (with HotSpot or OpenJ9) from here.
  • SLES (12 SP5, 15 SP2)

    • With Open JDK:
      sudo zypper install -y wget tar gzip java-11-openjdk java-11-openjdk-devel
      
    • With AdoptOpenJDK 11
      sudo zypper install -y wget tar gzip
      • Download and install AdoptOpenJDK 11 (with HotSpot or OpenJ9) from here.
  • Ubuntu (18.04, 20.04, 21.04)

    • With Open JDK

      sudo apt-get update
      sudo apt-get install -y openjdk-11-jdk maven
      
    • With AdoptOpenJDK 11

      sudo apt-get -y install wget tar maven
      • Download and install AdoptOpenJDK 11 (with HotSpot or OpenJ9) from here.

2. Install Maven (only for SLES)

   cd $SOURCE_ROOT
   wget https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.1/apache-maven-3.8.1-bin.tar.gz
   tar -xvzf apache-maven-3.8.1-bin.tar.gz
   export M2_HOME=$SOURCE_ROOT/apache-maven-3.8.1
   export PATH=$M2_HOME/bin:$PATH

3. Set environment variables

export JAVA_HOME=<path to java>
export PATH=$JAVA_HOME/bin:$PATH

4. Use required camel jars

To use the camel binary in your Apache Maven pom.xml, import the Camel Bill of Materials (BOM) and then include the camel-core and any other components needed as mentioned here. There are also few examples available to refer.

Note: Apache Component references provides various references that offers services for messaging, sending data, notifications and various other services that can not only resolve easy messaging and transferring data but also provide securing of data. However few components such as Deep Java Library, camel-kudu are not supported on s390x.

If you want to build camel from source, refer official documentation

References:

http://camel.apache.org/ https://camel.apache.org/components/latest/ https://camel.apache.org/docs/ https://camel.apache.org/releases/release-3.9.0/

Clone this wiki locally