Building Apache Camel - linux-on-ibm-z/docs GitHub Wiki
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 flavours can be installed on the mentioned distributions.
Note: Apache Camel (v4.18.1) was verified at the time of creation of these instructions
1. Install Java
export SOURCE_ROOT=/<source_root>/
-
RHEL (8.10, 9.4, 9.6, 9.7, 10.0, 10.1)
-
With OpenJDK 17 (Except for RHEL 10.0 and 10.1):
sudo yum install -y java-17-openjdk-devel -
With OpenJDK 21:
sudo yum install -y java-21-openjdk-devel -
With IBM Semeru Runtime:
sudo yum install -y wget tar- Download and install IBM Semeru Runtime (Java 17, 21) from here.
-
With Eclipse Adoptium Temurin Runtime:
sudo yum install -y wget tar- Download and install Eclipse Adoptium Temurin Runtime (Java 17, 21) from here.
-
-
SLES (15 SP7, 16)
-
With OpenJDK 17:
sudo zypper install -y java-17-openjdk-devel -
With OpenJDK21:
sudo zypper install -y java-21-openjdk-devel -
With IBM Semeru Runtime:
sudo zypper install -y wget tar gzip- Download and install IBM Semeru Runtime (Java 17, 21) from here.
-
With Eclipse Adoptium Temurin Runtime:
sudo zypper install -y wget tar gzip- Download and install Eclipse Adoptium Temurin Runtime (Java 17, 21) from here.
-
-
Ubuntu (22.04, 24.04, 25.10)
-
With OpenJDK 17
sudo apt-get update sudo apt-get install -y openjdk-17-jdk -
With OpenJDK 21:
sudo apt-get install -y openjdk-21-jdk -
With IBM Semeru Runtime:
sudo apt-get -y install wget tar- Download and install IBM Semeru Runtime (Java 17, 21) on all above mentioned distribution from here.
-
With Eclipse Adoptium Temurin Runtime:
sudo apt-get -y install wget tar- Download and install Eclipse Adoptium Temurin Runtime (Java 17, 21) on all above mentioned distribution from here.
-
Note: Eclipse Adoptium Temurin Runtime Version jdk-17.0.17+10, jdk-21.0.9+10, IBM Semeru Runtime Version jdk-17.0.17+10, jdk-21.0.9+10, OpenJDK 17 and OpenJDK 21 were used for verifying these instructions.
2. Set environment variables
export JAVA_HOME=<path to java>
export PATH=$JAVA_HOME/bin:$PATH
3. Use 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 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 and Kudu are not supported on s390x. Java Flight Recorder, GraalVM Polyglot are 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.