Adding module.xml definition

A module.xml descriptor file defines the class loading behavior of the component.

You can create an additional directory and add the module.xml file and any jar dependencies into it. For example, modules/system/layers/fuse/org/apache/camel/component/ftp/main directory.

Here is an example for the camel-ftp component:

<module xmlns="urn:jboss:module:1.1" name="org.apache.camel.component.ftp">
  <resources>
    <resource-root path="camel-ftp-2.14.0.jar" />
  </resources>
  <dependencies>
    <module name="com.jcraft.jsch" />
    <module name="javax.xml.bind.api" />
    <module name="org.apache.camel.core" />
    <module name="org.apache.commons.net" />
  </dependencies>
</module>