Building Camel from Source
About 10Gb of free disk space for the compiled code and local Maven cache.
At least 3.5Gb of RAM.
A relatively modern operating system (Linux, Windows, macOS, *BSDs).
Other operating systems capable of running Java should work too, although that is not tested by the project
Running the Maven Wrapper
mvnw script with
-v parameter from the root directory of the project will reveal the recommended Maven version:
./mvnw -v Apache Maven 1.2.3 Maven home: /home/user/.m2/wrapper/dists/apache-maven-1.2.3-bin/deadbeef/apache-maven-1.2.3 Java version: 17.0.5, vendor: Eclipse Adoptium, runtime: /home/user/java/17.0.5-tem Default locale: en_IE, platform encoding: UTF-8 OS name: "linux", version: "6.3.7-200.fc38.x86_64", arch: "amd64", family: "unix"
If you do not like installing Maven manually, you can keep using
mvnw instead of
Camel committers and experienced Camel contributors are may also use Maven Daemon
To build Camel maven has to be configured to use more memory, which is done automatically via the
Beware this runs all the unit tests which takes many hours.
mvn clean install
The following command will do a fast build.
mvn clean install -Dquickly
On Camel 4, you can also use
The commands above will build Camel in a quick way: skipping build optional artifacts and running tests. In most modern computers, this should complete in at most 30 minutes (usually much less, for newer hardware).
If you want to build jar files with the source code, then you can run this command from the camel root folder:
mvn -Pfastinstall,source-jar clean install