This is an automated email from the ASF dual-hosted git repository. jiriondrusek pushed a commit to branch camel-main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit f77fcc7d2897be0a50826a15e855adea3df8246f Author: JiriOndrusek <ondrusek.j...@gmail.com> AuthorDate: Tue Mar 19 12:09:03 2024 +0100 Fix of catalog suggested in #5893 --- .../camel/catalog/quarkus/QuarkusRuntimeProviderTest.java | 4 ++-- docs/modules/ROOT/examples/components/coap+tcp.yml | 13 +++++++++++++ docs/modules/ROOT/examples/components/coaps+tcp.yml | 13 +++++++++++++ docs/modules/ROOT/examples/components/coaps.yml | 13 +++++++++++++ docs/modules/ROOT/examples/components/cometds.yml | 13 +++++++++++++ docs/modules/ROOT/examples/components/disruptor-vm.yml | 13 +++++++++++++ docs/modules/ROOT/examples/components/https.yml | 13 +++++++++++++ docs/modules/ROOT/examples/components/imaps.yml | 13 +++++++++++++ docs/modules/ROOT/examples/components/pop3.yml | 13 +++++++++++++ docs/modules/ROOT/examples/components/pop3s.yml | 13 +++++++++++++ docs/modules/ROOT/examples/components/smpps.yml | 13 +++++++++++++ docs/modules/ROOT/examples/components/smtp.yml | 13 +++++++++++++ docs/modules/ROOT/examples/components/smtps.yml | 13 +++++++++++++ .../camel/quarkus/maven/PrepareCatalogQuarkusMojo.java | 4 ++-- 14 files changed, 160 insertions(+), 4 deletions(-) diff --git a/catalog/src/test/java/org/apache/camel/catalog/quarkus/QuarkusRuntimeProviderTest.java b/catalog/src/test/java/org/apache/camel/catalog/quarkus/QuarkusRuntimeProviderTest.java index c508552b4b..0e331e470a 100644 --- a/catalog/src/test/java/org/apache/camel/catalog/quarkus/QuarkusRuntimeProviderTest.java +++ b/catalog/src/test/java/org/apache/camel/catalog/quarkus/QuarkusRuntimeProviderTest.java @@ -31,8 +31,8 @@ import java.util.stream.Stream; import org.apache.camel.catalog.CamelCatalog; import org.apache.camel.catalog.DefaultCamelCatalog; -import org.apache.camel.catalog.Kind; import org.apache.camel.tooling.model.ArtifactModel; +import org.apache.camel.tooling.model.Kind; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; @@ -72,7 +72,7 @@ public class QuarkusRuntimeProviderTest { @Test public void extensionsPresent() throws Exception { - final Set<String> artifactIdsPresentInCatalog = Stream.of(org.apache.camel.catalog.Kind.values()) + final Set<String> artifactIdsPresentInCatalog = Stream.of(Kind.values()) .filter(kind -> kind != Kind.eip) .flatMap(kind -> catalog.findNames(kind).stream() .map(name -> catalog.model(kind, name))) diff --git a/docs/modules/ROOT/examples/components/coap+tcp.yml b/docs/modules/ROOT/examples/components/coap+tcp.yml new file mode 100644 index 0000000000..311d13f86f --- /dev/null +++ b/docs/modules/ROOT/examples/components/coap+tcp.yml @@ -0,0 +1,13 @@ +# Do not edit directly! +# This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page +cqArtifactId: camel-quarkus-coap +cqArtifactIdBase: coap +cqNativeSupported: false +cqStatus: Preview +cqDeprecated: false +cqJvmSince: 1.1.0 +cqNativeSince: n/a +cqCamelPartName: coap+tcp +cqCamelPartTitle: CoAP +cqCamelPartDescription: Send and receive messages to/from COAP capable devices. +cqExtensionPageTitle: CoAP diff --git a/docs/modules/ROOT/examples/components/coaps+tcp.yml b/docs/modules/ROOT/examples/components/coaps+tcp.yml new file mode 100644 index 0000000000..070e673051 --- /dev/null +++ b/docs/modules/ROOT/examples/components/coaps+tcp.yml @@ -0,0 +1,13 @@ +# Do not edit directly! +# This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page +cqArtifactId: camel-quarkus-coap +cqArtifactIdBase: coap +cqNativeSupported: false +cqStatus: Preview +cqDeprecated: false +cqJvmSince: 1.1.0 +cqNativeSince: n/a +cqCamelPartName: coaps+tcp +cqCamelPartTitle: CoAP +cqCamelPartDescription: Send and receive messages to/from COAP capable devices. +cqExtensionPageTitle: CoAP diff --git a/docs/modules/ROOT/examples/components/coaps.yml b/docs/modules/ROOT/examples/components/coaps.yml new file mode 100644 index 0000000000..2c5056c4d2 --- /dev/null +++ b/docs/modules/ROOT/examples/components/coaps.yml @@ -0,0 +1,13 @@ +# Do not edit directly! +# This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page +cqArtifactId: camel-quarkus-coap +cqArtifactIdBase: coap +cqNativeSupported: false +cqStatus: Preview +cqDeprecated: false +cqJvmSince: 1.1.0 +cqNativeSince: n/a +cqCamelPartName: coaps +cqCamelPartTitle: CoAP (Secure) +cqCamelPartDescription: Send and receive messages to/from COAP capable devices. +cqExtensionPageTitle: CoAP diff --git a/docs/modules/ROOT/examples/components/cometds.yml b/docs/modules/ROOT/examples/components/cometds.yml new file mode 100644 index 0000000000..e4f5b43b25 --- /dev/null +++ b/docs/modules/ROOT/examples/components/cometds.yml @@ -0,0 +1,13 @@ +# Do not edit directly! +# This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page +cqArtifactId: camel-quarkus-cometd +cqArtifactIdBase: cometd +cqNativeSupported: false +cqStatus: Preview +cqDeprecated: false +cqJvmSince: 1.1.0 +cqNativeSince: n/a +cqCamelPartName: cometds +cqCamelPartTitle: CometD (Secure) +cqCamelPartDescription: Offers publish/subscribe, peer-to-peer (via a server), and RPC style messaging using the CometD/Bayeux protocol. +cqExtensionPageTitle: CometD diff --git a/docs/modules/ROOT/examples/components/disruptor-vm.yml b/docs/modules/ROOT/examples/components/disruptor-vm.yml new file mode 100644 index 0000000000..27ea8d61a3 --- /dev/null +++ b/docs/modules/ROOT/examples/components/disruptor-vm.yml @@ -0,0 +1,13 @@ +# Do not edit directly! +# This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page +cqArtifactId: camel-quarkus-disruptor +cqArtifactIdBase: disruptor +cqNativeSupported: true +cqStatus: Stable +cqDeprecated: false +cqJvmSince: 1.1.0 +cqNativeSince: 1.2.0 +cqCamelPartName: disruptor-vm +cqCamelPartTitle: Disruptor VM +cqCamelPartDescription: Provides asynchronous SEDA behavior using LMAX Disruptor. +cqExtensionPageTitle: Disruptor diff --git a/docs/modules/ROOT/examples/components/https.yml b/docs/modules/ROOT/examples/components/https.yml new file mode 100644 index 0000000000..64c2ca0fce --- /dev/null +++ b/docs/modules/ROOT/examples/components/https.yml @@ -0,0 +1,13 @@ +# Do not edit directly! +# This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page +cqArtifactId: camel-quarkus-http +cqArtifactIdBase: http +cqNativeSupported: true +cqStatus: Stable +cqDeprecated: false +cqJvmSince: 1.0.0 +cqNativeSince: 1.0.0 +cqCamelPartName: https +cqCamelPartTitle: HTTPS (Secure) +cqCamelPartDescription: Send requests to external HTTP servers using Apache HTTP Client 5.x. +cqExtensionPageTitle: HTTP diff --git a/docs/modules/ROOT/examples/components/imaps.yml b/docs/modules/ROOT/examples/components/imaps.yml new file mode 100644 index 0000000000..0acfef4dad --- /dev/null +++ b/docs/modules/ROOT/examples/components/imaps.yml @@ -0,0 +1,13 @@ +# Do not edit directly! +# This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page +cqArtifactId: camel-quarkus-mail +cqArtifactIdBase: mail +cqNativeSupported: true +cqStatus: Stable +cqDeprecated: false +cqJvmSince: 0.2.0 +cqNativeSince: 0.2.0 +cqCamelPartName: imaps +cqCamelPartTitle: IMAPS (Secure) +cqCamelPartDescription: Send and receive emails using imap, pop3 and smtp protocols. +cqExtensionPageTitle: Mail diff --git a/docs/modules/ROOT/examples/components/pop3.yml b/docs/modules/ROOT/examples/components/pop3.yml new file mode 100644 index 0000000000..632f3b843b --- /dev/null +++ b/docs/modules/ROOT/examples/components/pop3.yml @@ -0,0 +1,13 @@ +# Do not edit directly! +# This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page +cqArtifactId: camel-quarkus-mail +cqArtifactIdBase: mail +cqNativeSupported: true +cqStatus: Stable +cqDeprecated: false +cqJvmSince: 0.2.0 +cqNativeSince: 0.2.0 +cqCamelPartName: pop3 +cqCamelPartTitle: POP3 +cqCamelPartDescription: Send and receive emails using imap, pop3 and smtp protocols. +cqExtensionPageTitle: Mail diff --git a/docs/modules/ROOT/examples/components/pop3s.yml b/docs/modules/ROOT/examples/components/pop3s.yml new file mode 100644 index 0000000000..698a5ce507 --- /dev/null +++ b/docs/modules/ROOT/examples/components/pop3s.yml @@ -0,0 +1,13 @@ +# Do not edit directly! +# This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page +cqArtifactId: camel-quarkus-mail +cqArtifactIdBase: mail +cqNativeSupported: true +cqStatus: Stable +cqDeprecated: false +cqJvmSince: 0.2.0 +cqNativeSince: 0.2.0 +cqCamelPartName: pop3s +cqCamelPartTitle: POP3S +cqCamelPartDescription: Send and receive emails using imap, pop3 and smtp protocols. +cqExtensionPageTitle: Mail diff --git a/docs/modules/ROOT/examples/components/smpps.yml b/docs/modules/ROOT/examples/components/smpps.yml new file mode 100644 index 0000000000..80c44ea1c0 --- /dev/null +++ b/docs/modules/ROOT/examples/components/smpps.yml @@ -0,0 +1,13 @@ +# Do not edit directly! +# This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page +cqArtifactId: camel-quarkus-smpp +cqArtifactIdBase: smpp +cqNativeSupported: false +cqStatus: Preview +cqDeprecated: false +cqJvmSince: 1.1.0 +cqNativeSince: n/a +cqCamelPartName: smpps +cqCamelPartTitle: SMPP (Secure) +cqCamelPartDescription: Send and receive SMS messages using a SMSC (Short Message Service Center). +cqExtensionPageTitle: SMPP diff --git a/docs/modules/ROOT/examples/components/smtp.yml b/docs/modules/ROOT/examples/components/smtp.yml new file mode 100644 index 0000000000..430ee33321 --- /dev/null +++ b/docs/modules/ROOT/examples/components/smtp.yml @@ -0,0 +1,13 @@ +# Do not edit directly! +# This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page +cqArtifactId: camel-quarkus-mail +cqArtifactIdBase: mail +cqNativeSupported: true +cqStatus: Stable +cqDeprecated: false +cqJvmSince: 0.2.0 +cqNativeSince: 0.2.0 +cqCamelPartName: smtp +cqCamelPartTitle: SMTP +cqCamelPartDescription: Send and receive emails using imap, pop3 and smtp protocols. +cqExtensionPageTitle: Mail diff --git a/docs/modules/ROOT/examples/components/smtps.yml b/docs/modules/ROOT/examples/components/smtps.yml new file mode 100644 index 0000000000..fd08f6b7f8 --- /dev/null +++ b/docs/modules/ROOT/examples/components/smtps.yml @@ -0,0 +1,13 @@ +# Do not edit directly! +# This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page +cqArtifactId: camel-quarkus-mail +cqArtifactIdBase: mail +cqNativeSupported: true +cqStatus: Stable +cqDeprecated: false +cqJvmSince: 0.2.0 +cqNativeSince: 0.2.0 +cqCamelPartName: smtps +cqCamelPartTitle: SMTPS +cqCamelPartDescription: Send and receive emails using imap, pop3 and smtp protocols. +cqExtensionPageTitle: Mail diff --git a/tooling/maven-plugin/src/main/java/org/apache/camel/quarkus/maven/PrepareCatalogQuarkusMojo.java b/tooling/maven-plugin/src/main/java/org/apache/camel/quarkus/maven/PrepareCatalogQuarkusMojo.java index b536ba3390..993c183800 100644 --- a/tooling/maven-plugin/src/main/java/org/apache/camel/quarkus/maven/PrepareCatalogQuarkusMojo.java +++ b/tooling/maven-plugin/src/main/java/org/apache/camel/quarkus/maven/PrepareCatalogQuarkusMojo.java @@ -153,12 +153,12 @@ public class PrepareCatalogQuarkusMojo extends AbstractExtensionListMojo { model.setLabel(ext.getLabel().orElse("quarkus")); update(model, ext, nativeSupported, quarkusVersion); CqCatalog.serialize(catalogPath, model); - schemesByKind.get(model.getKind()).add(model.getName()); + schemesByKind.get(model.getKind().name()).add(model.getName()); } else { for (ArtifactModel<?> model : models) { update(model, ext, nativeSupported, quarkusVersion); CqCatalog.serialize(catalogPath, model); - schemesByKind.get(model.getKind()).add(model.getName()); + schemesByKind.get(model.getKind().name()).add(model.getName()); } } });