// Do not edit directly!
// This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page
[id="extensions-kamelet"]
= Kamelet
:linkattrs:
:cq-artifact-id: camel-quarkus-kamelet
:cq-native-supported: true
:cq-status: Stable
:cq-status-deprecation: Stable
:cq-description: Materialize route templates
:cq-deprecated: false
:cq-jvm-since: 1.7.0
:cq-native-since: 1.7.0

ifeval::[{doc-show-badges} == true]
[.badges]
[.badge-key]##JVM since##[.badge-supported]##1.7.0## [.badge-key]##Native since##[.badge-supported]##1.7.0##
endif::[]

Materialize route templates

[id="extensions-kamelet-whats-inside"]
== What's inside

* xref:{cq-camel-components}::kamelet-component.adoc[Kamelet component], URI syntax: `kamelet:templateId/routeId`

Please refer to the above link for usage and configuration details.

[id="extensions-kamelet-maven-coordinates"]
== Maven coordinates

https://{link-quarkus-code-generator}/?extension-search=camel-quarkus-kamelet[Create a new project with this extension on {link-quarkus-code-generator}, window="_blank"]

Or add the coordinates to your existing project:

[source,xml]
----
<dependency>
    <groupId>org.apache.camel.quarkus</groupId>
    <artifactId>camel-quarkus-kamelet</artifactId>
</dependency>
----
ifeval::[{doc-show-user-guide-link} == true]
Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications.
endif::[]

[id="extensions-kamelet-usage"]
== Usage
[id="extensions-kamelet-usage-preloading-kamelets-at-build-time"]
=== Preloading Kamelets at build-time

This extension can preload a set of Kamelets at build time. You must include the names of each Kamelet, in the `quarkus.camel.kamelet.identifiers` configuration property.

[id="extensions-kamelet-usage-using-the-kamelet-catalog"]
=== Using the Kamelet Catalog

A set of pre-made Kamelets can be found in the Kamelet Catalog.
To use a Kamelet from the catalog, you need to copy its YAML definition (that you can find https://github.com/apache/camel-kamelets/[in the camel-kamelets repository]) to your project.

Alternatively, you can add the `camel-kamelets` dependency to your application.

[source,xml]
----
<dependency>
    <groupId>org.apache.camel.kamelets</groupId>
    <artifactId>camel-kamelets</artifactId>
</dependency>
----

If the Kamelet requires the `camel-kamelets-utils` dependency, then this should also be added to your application.

[source,xml]
----
<dependency>
    <groupId>org.apache.camel.kamelets</groupId>
    <artifactId>camel-kamelets-utils</artifactId>
    <exclusions>
        <exclusion>
            <groupId>org.apache.camel</groupId>
            <artifactId>*</artifactId>
        </exclusion>
    </exclusions>
</dependency>
----

You can select which Kamelets from the catalog you want to use by referencing their name in the `quarkus.camel.kamelet.identifiers` property.


[id="extensions-kamelet-additional-camel-quarkus-configuration"]
== Additional Camel Quarkus configuration

[width="100%",cols="80,5,15",options="header"]
|===
| Configuration property | Type | Default


|icon:lock[title=Fixed at build time] [[quarkus.camel.kamelet.identifiers]]`link:#quarkus.camel.kamelet.identifiers[quarkus.camel.kamelet.identifiers]`

List of kamelets identifiers to pre-load at build time.

Each individual identifier is used to set the related `org.apache.camel.model.RouteTemplateDefinition` id.
| List of `string`
| 
|===

[.configuration-legend]
{doc-link-icon-lock}[title=Fixed at build time] Configuration property fixed at build time. All other configuration properties are overridable at runtime.

