-
Notifications
You must be signed in to change notification settings - Fork 56
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)
-
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.
-
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:
Download and install IBM Java 8 from here
sudo zypper install tar wget
- With IBM SDK:
-
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
- With IBM SDK:
-
Ubuntu (16.04, 17.04, 17.10)
-
With IBM SDK:
sudo apt-get update sudo apt-get install maven tar wgetDownload and install IBM Java 8 from here
-
With Open JDK
sudo apt-get update sudo apt-get install maven tar wget openjdk-8-jdk
-
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:$PATHexport 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
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 -fnOn 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.
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.