in support/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/GenerateCatalogMojo.java [358:386]
private void processComponents(org.apache.camel.catalog.CamelCatalog catalog, Map<String, CamelArtifact> artifacts) {
final Set<String> elements = new TreeSet<>(catalog.findComponentNames());
if (componentsExclusionList != null) {
getLog().info("components.exclusion.list: " + componentsExclusionList);
elements.removeAll(componentsExclusionList);
}
for (String name : elements) {
String json = catalog.componentJSonSchema(name);
CatalogComponentDefinition definition = CatalogSupport.unmarshallComponent(json);
artifacts.compute(definition.getArtifactId(), (key, artifact) -> {
CamelArtifact.Builder builder = artifactBuilder(artifact, definition);
builder.addJavaType(definition.getJavaType());
definition.getSchemes().map(StringUtils::trimToNull).filter(Objects::nonNull).forEach(scheme -> {
builder.addScheme(
new CamelScheme.Builder()
.id(scheme)
.http(KNOWN_HTTP_URIS.contains(scheme))
.passive(KNOWN_PASSIVE_URIS.contains(scheme))
.build());
});
return builder.build();
});
}
}