-
Notifications
You must be signed in to change notification settings - Fork 56
Building Apache Camel
ATTENTION: Please note that the verified version of this package is currently using an older version of log4j which has the security vulnerabilities. Please see here for more details.
- 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 flavours can be installed on the mentioned distributions.
Note: Apache Camel (v3.11.0) was verified at the time of creation of these instructions
export SOURCE_ROOT=/<source_root>/
-
RHEL (7.8, 7.9, 8.2, 8.4)
-
With OpenJDK:
sudo yum install -y java-11-openjdk java-11-openjdk-devel
-
With IBM Semeru Runtime (previously known as AdoptOpenJDK openj9):
sudo yum install -y wget tar
- Download and install IBM Semeru Runtime (Java 11) from here.
-
With Eclipse Adoptium Temurin Runtime (previously known as AdoptOpenJDK hotspot)
sudo yum install -y wget tar
- Download and install Eclipse Adoptium Temurin Runtime (Java 11) from here.
-
-
SLES (12 SP5, 15 SP2, 15 SP3)
-
With OpenJDK:
sudo zypper install -y wget tar gzip java-11-openjdk java-11-openjdk-devel
-
With IBM Semeru Runtime (previously known as AdoptOpenJDK openj9):
sudo zypper install -y wget tar gzip
- Download and install IBM Semeru Runtime (Java 11) from here.
-
With Eclipse Adoptium Temurin Runtime (previously known as AdoptOpenJDK hotspot)
sudo zypper install -y wget tar gzip
- Download and install Eclipse Adoptium Temurin Runtime (Java 11) from here.
-
-
Ubuntu (18.04, 20.04, 21.04)
-
With OpenJDK
sudo apt-get update sudo apt-get install -y openjdk-11-jdk maven
-
With IBM Semeru Runtime (previously known as AdoptOpenJDK openj9):
sudo apt-get -y install wget tar maven
- Download and install IBM Semeru Runtime (Java 11) from here.
-
With Eclipse Adoptium Temurin Runtime (previously known as AdoptOpenJDK hotspot)
sudo apt-get -y install wget tar maven
- Download and install Eclipse Adoptium Temurin Runtime (Java 11) from here.
-
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
export JAVA_HOME=<path to java>
export PATH=$JAVA_HOME/bin:$PATH
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 for reference.
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, kudu, hadoop, infinispan and OAI-PMH are not supported on s390x. Java Flight Recorder is not available in IBM Semeru Runtime (OpenJ9).
If you want to build Camel from source, refer official documentation. In this documentation mvn clean install
runs all the unit tests. Few components tests requires docker images which are currently not available for s390x and will fail.
The information provided in this article is accurate at the time of writing, but on-going development in the open-source projects involved may make the information incorrect or obsolete. Please open issue or contact us on IBM Z Community if you have any questions or feedback.