Appendix B SAmple Code Build Automation System Automation Systems will help you to provide support and maintenance of multiproject builds that are expected to be quite huge, and helps you to maintain the dependencies of the application with regard to third-party modules and parts, the build order, as well as the needed plug-in. It will download libraries and plug-ins from the different repositories and then put them all in a cache on your local machine. It also allows for incrementally adding to your build, because it knows which parts of your project are getting updated. To demonstrate the application, we have chosen Maven. But you can also use other build automation tools such as Gradle. Add Dependency This integration application is a Maven-based Project’s; hence, add the following dependencies in the POM.xml file of the project. It is available in the project’s root folder for your reference. • Camel-core: The main dependency for Apache Camel • Camel-spring: Enables us to use Camel with Spring • Camel-stream: An optional dependency, which you can use to display some messages on the console while routes are running • Spring-context: The standard spring dependency, required in our case as we are going to run Camel routes in a Spring context (Spring container) • Spring-core: The main dependency of Spring • log4j: Log4j is a Java-based logging utility that enables us to implement logging in our application. • Jetty: The Jetty plug-in is used to as a lightweight server to instantly run the application and test the development work. 347
Building Digital Experience Platforms Page 356 Page 358