[GitHub] [camel-k] lburgazzoli commented on issue #1005: Cannot use knative-source-yaml loader
lburgazzoli commented on issue #1005: Cannot use knative-source-yaml loader URL: https://github.com/apache/camel-k/issues/1005#issuecomment-540953339 As far as I remember you was supposed to add the `loader` field to the `SourceSpec` while working on kanative related things :) This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-k] lburgazzoli edited a comment on issue #1005: Cannot use knative-source-yaml loader
lburgazzoli edited a comment on issue #1005: Cannot use knative-source-yaml loader URL: https://github.com/apache/camel-k/issues/1005#issuecomment-540953339 As far as I remember you were supposed to add the `loader` field to the `SourceSpec` while working on kanative related things :) This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[camel] branch camel-2.x updated: Camel-pulsar example: Removed camel-pulsar version from example
This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch camel-2.x in repository https://gitbox.apache.org/repos/asf/camel.git The following commit(s) were added to refs/heads/camel-2.x by this push: new 24bd3bb Camel-pulsar example: Removed camel-pulsar version from example 24bd3bb is described below commit 24bd3bbdb1be5f5c8a2ac1a34915f7f78eb0ad04 Author: Andrea Cosentino AuthorDate: Fri Oct 11 09:50:32 2019 +0200 Camel-pulsar example: Removed camel-pulsar version from example --- examples/camel-example-spring-pulsar/pom.xml | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/camel-example-spring-pulsar/pom.xml b/examples/camel-example-spring-pulsar/pom.xml index 6cf0bac..4d38ef8 100644 --- a/examples/camel-example-spring-pulsar/pom.xml +++ b/examples/camel-example-spring-pulsar/pom.xml @@ -48,7 +48,6 @@ org.apache.camel camel-pulsar -2.25.0-SNAPSHOT
[GitHub] [camel-k] nicolaferraro commented on issue #1005: Cannot use knative-source-yaml loader
nicolaferraro commented on issue #1005: Cannot use knative-source-yaml loader URL: https://github.com/apache/camel-k/issues/1005#issuecomment-540959072 "As far as I remember" is not credible when said by you ;) But yeah, you may be right.. and that's the missing piece.. let me work on it! This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-k] astefanutti opened a new pull request #1006: Update OLM manifests for 1.0.0-M2 release
astefanutti opened a new pull request #1006: Update OLM manifests for 1.0.0-M2 release URL: https://github.com/apache/camel-k/pull/1006 **Release Note** ```release-note NONE ``` This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] coolbeevip opened a new issue #257: Shell scripts in the user guide documentation are not compatible with Mac OS X
coolbeevip opened a new issue #257: Shell scripts in the user guide documentation are not compatible with Mac OS X URL: https://github.com/apache/camel-quarkus/issues/257 ``` cp -r camel-quarkus/integration-tests/servlet/ . ``` The following is the description of the -R parameter in the man pages for cp on Mac OS X: If source_file designates a directory, cp copies the directory and the entire subtree connected at that point. If the source_file ends in a /, the contents of the directory are copied rather than the directory itself. This option also causes symbolic links to be copied, rather than indirected through, and for cp to create special files rather than copying them as normal files. Created directories have the same mode as the corresponding source directory, unmodified by the process' umask. This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] coolbeevip opened a new pull request #258: #257 The cp -R command on Mac OS X behaves differently
coolbeevip opened a new pull request #258: #257 The cp -R command on Mac OS X behaves differently URL: https://github.com/apache/camel-quarkus/pull/258 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] ppalaga commented on issue #257: Shell scripts in the user guide documentation are not compatible with Mac OS X
ppalaga commented on issue #257: Shell scripts in the user guide documentation are not compatible with Mac OS X URL: https://github.com/apache/camel-quarkus/issues/257#issuecomment-540989251 Thanks for the report, @coolbeevip . Could you please propose a shell command that works for you? This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] ppalaga commented on issue #257: Shell scripts in the user guide documentation are not compatible with Mac OS X
ppalaga commented on issue #257: Shell scripts in the user guide documentation are not compatible with Mac OS X URL: https://github.com/apache/camel-quarkus/issues/257#issuecomment-540989671 Sorry, I see the PR now. This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] coolbeevip commented on issue #257: Shell scripts in the user guide documentation are not compatible with Mac OS X
coolbeevip commented on issue #257: Shell scripts in the user guide documentation are not compatible with Mac OS X URL: https://github.com/apache/camel-quarkus/issues/257#issuecomment-540990507 > Thanks for the report, @coolbeevip . Could you please propose a shell command that works for you? I submitted a PR #258 for it This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[camel] branch master updated (d36f0c9 -> 9c75fc5)
This is an automated email from the ASF dual-hosted git repository. coheigea pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/camel.git. from d36f0c9 Improve support for custom SSLHandler CAMEL-14055 (#3243) add 9c75fc5 Disable external entities for schematron component No new revisions were added by this update. Summary of changes: .../schematron/processor/SchematronProcessorFactory.java | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-)
[GitHub] [camel-quarkus] ppalaga opened a new issue #259: Adapt the User guide to refer to the new example rather than the servlet itest
ppalaga opened a new issue #259: Adapt the User guide to refer to the new example rather than the servlet itest URL: https://github.com/apache/camel-quarkus/issues/259 The servlet integration test was changed recently and the guide text does not fit the reality. The user guide should refer to the new example in the examples directory. This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[camel] branch camel-2.x updated: Disable external entities for schematron component
This is an automated email from the ASF dual-hosted git repository. coheigea pushed a commit to branch camel-2.x in repository https://gitbox.apache.org/repos/asf/camel.git The following commit(s) were added to refs/heads/camel-2.x by this push: new 85043c3 Disable external entities for schematron component 85043c3 is described below commit 85043c375d22f151e41aaa0a5f51ee1cf88a9300 Author: Colm O hEigeartaigh AuthorDate: Fri Oct 11 10:37:17 2019 +0100 Disable external entities for schematron component --- .../schematron/processor/SchematronProcessorFactory.java | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/components/camel-schematron/src/main/java/org/apache/camel/component/schematron/processor/SchematronProcessorFactory.java b/components/camel-schematron/src/main/java/org/apache/camel/component/schematron/processor/SchematronProcessorFactory.java index 13f146e..1f098da 100644 --- a/components/camel-schematron/src/main/java/org/apache/camel/component/schematron/processor/SchematronProcessorFactory.java +++ b/components/camel-schematron/src/main/java/org/apache/camel/component/schematron/processor/SchematronProcessorFactory.java @@ -69,7 +69,15 @@ public final class SchematronProcessorFactory { */ private static XMLReader getXMLReader() throws ParserConfigurationException, SAXException { final SAXParserFactory fac = SAXParserFactory.newInstance(); -fac.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, Boolean.TRUE); +try { +fac.setFeature(javax.xml.XMLConstants.FEATURE_SECURE_PROCESSING, Boolean.TRUE); + fac.setFeature("http://xml.org/sax/features/external-general-entities";, false); + fac.setFeature("http://xml.org/sax/features/external-parameter-entities";, false); + fac.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd";, false); +} catch (ParserConfigurationException | SAXException ex) { +// LOG.debug("Error setting feature on parser: " + +// ex.getMessage()); +} fac.setValidating(false); final SAXParser parser = fac.newSAXParser(); XMLReader reader = parser.getXMLReader();
[camel] branch master updated (9c75fc5 -> ed686ee)
This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/camel.git. from 9c75fc5 Disable external entities for schematron component new 65885be CAMEL-14052: camel-paho make it possible to configure all its options via compoent options that also works for Spring Boot new ed686ee CAMEL-14052: camel-paho make it possible to configure all its options via compoent options that also works for Spring Boot The 2 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .../camel-paho/src/main/docs/paho-component.adoc | 67 +- .../apache/camel/component/paho/PahoComponent.java | 91 +- .../camel/component/paho/PahoConfiguration.java| 581 ++ .../apache/camel/component/paho/PahoConsumer.java | 71 +- .../apache/camel/component/paho/PahoEndpoint.java | 281 +-- .../apache/camel/component/paho/PahoProducer.java | 51 +- .../camel/component/paho/PahoComponentTest.java| 34 +- .../component/paho/PahoOverrideTopicTest.java | 12 +- .../endpoint/dsl/PahoEndpointBuilderFactory.java | 1857 ++-- .../springboot/PahoComponentConfiguration.java | 525 +- 10 files changed, 3073 insertions(+), 497 deletions(-) create mode 100644 components/camel-paho/src/main/java/org/apache/camel/component/paho/PahoConfiguration.java
[camel] 01/02: CAMEL-14052: camel-paho make it possible to configure all its options via compoent options that also works for Spring Boot
This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git commit 65885bee95091034b3625690f2ef1bebf649089a Author: Claus Ibsen AuthorDate: Fri Oct 11 10:52:03 2019 +0200 CAMEL-14052: camel-paho make it possible to configure all its options via compoent options that also works for Spring Boot --- .../apache/camel/component/paho/PahoComponent.java | 91 +--- .../camel/component/paho/PahoConfiguration.java| 581 + .../apache/camel/component/paho/PahoConsumer.java | 4 +- .../apache/camel/component/paho/PahoEndpoint.java | 264 +++--- .../apache/camel/component/paho/PahoProducer.java | 4 +- .../camel/component/paho/PahoComponentTest.java| 34 +- .../component/paho/PahoOverrideTopicTest.java | 5 - 7 files changed, 675 insertions(+), 308 deletions(-) diff --git a/components/camel-paho/src/main/java/org/apache/camel/component/paho/PahoComponent.java b/components/camel-paho/src/main/java/org/apache/camel/component/paho/PahoComponent.java index d045bbc..30f43ce 100644 --- a/components/camel-paho/src/main/java/org/apache/camel/component/paho/PahoComponent.java +++ b/components/camel-paho/src/main/java/org/apache/camel/component/paho/PahoComponent.java @@ -23,7 +23,7 @@ import org.apache.camel.Endpoint; import org.apache.camel.spi.Metadata; import org.apache.camel.spi.annotations.Component; import org.apache.camel.support.DefaultComponent; -import org.eclipse.paho.client.mqttv3.MqttConnectOptions; +import org.eclipse.paho.client.mqttv3.MqttClient; /** * Component to integrate with the Eclipse Paho MQTT library. @@ -31,15 +31,11 @@ import org.eclipse.paho.client.mqttv3.MqttConnectOptions; @Component("paho") public class PahoComponent extends DefaultComponent { -private String brokerUrl; -private String clientId; -@Metadata(label = "security", secret = true) -private String userName; -@Metadata(label = "security", secret = true) -private String password; +private PahoConfiguration configuration = new PahoConfiguration(); + @Metadata(label = "advanced") -private MqttConnectOptions connectOptions; - +private MqttClient client; + public PahoComponent() { this(null); } @@ -52,83 +48,48 @@ public class PahoComponent extends DefaultComponent { @Override protected Endpoint createEndpoint(String uri, String remaining, Map parameters) throws Exception { -PahoEndpoint answer = new PahoEndpoint(uri, remaining, this); +// Each endpoint can have its own configuration so make +// a copy of the configuration +PahoConfiguration configuration = getConfiguration().copy(); -if (brokerUrl != null) { -answer.setBrokerUrl(brokerUrl); -} -if (clientId != null) { -answer.setClientId(clientId); -} -if (userName != null) { -answer.setUserName(userName); -} -if (password != null) { -answer.setPassword(password); -} -if (connectOptions != null) { -answer.setConnectOptions(connectOptions); -} +PahoEndpoint answer = new PahoEndpoint(uri, remaining, this, configuration); +answer.setClient(client); +setProperties(configuration, parameters); setProperties(answer, parameters); return answer; } -// Getters and setters - -public String getBrokerUrl() { -return brokerUrl; +public PahoConfiguration getConfiguration() { +return configuration; } /** - * The URL of the MQTT broker. + * To use the shared Paho configuration */ -public void setBrokerUrl(String brokerUrl) { -this.brokerUrl = brokerUrl; +public void setConfiguration(PahoConfiguration configuration) { +this.configuration = configuration; } -public String getClientId() { -return clientId; +public MqttClient getClient() { +return client; } /** - * MQTT client identifier. + * To use a shared Paho client */ -public void setClientId(String clientId) { -this.clientId = clientId; -} - -public String getUserName() { -return userName; +public void setClient(MqttClient client) { +this.client = client; } -/** - * Username to be used for authentication against the MQTT broker - */ -public void setUserName(String userName) { -this.userName = userName; -} - -public String getPassword() { -return password; -} - -/** - * Password to be used for authentication against the MQTT broker - */ -public void setPassword(String password) { -this.password = password; -} - -public MqttConnectOptions getConnectOptions() { -return connectOptions; +public String getBrokerUrl() {
[camel] branch camel-2.24.x updated: Disable external entities for schematron component
This is an automated email from the ASF dual-hosted git repository. coheigea pushed a commit to branch camel-2.24.x in repository https://gitbox.apache.org/repos/asf/camel.git The following commit(s) were added to refs/heads/camel-2.24.x by this push: new b2e6d10 Disable external entities for schematron component b2e6d10 is described below commit b2e6d10a50d3613179cf6c4655ff3b7e2d52a1d9 Author: Colm O hEigeartaigh AuthorDate: Fri Oct 11 10:37:17 2019 +0100 Disable external entities for schematron component --- .../schematron/processor/SchematronProcessorFactory.java | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/components/camel-schematron/src/main/java/org/apache/camel/component/schematron/processor/SchematronProcessorFactory.java b/components/camel-schematron/src/main/java/org/apache/camel/component/schematron/processor/SchematronProcessorFactory.java index 13f146e..1f098da 100644 --- a/components/camel-schematron/src/main/java/org/apache/camel/component/schematron/processor/SchematronProcessorFactory.java +++ b/components/camel-schematron/src/main/java/org/apache/camel/component/schematron/processor/SchematronProcessorFactory.java @@ -69,7 +69,15 @@ public final class SchematronProcessorFactory { */ private static XMLReader getXMLReader() throws ParserConfigurationException, SAXException { final SAXParserFactory fac = SAXParserFactory.newInstance(); -fac.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, Boolean.TRUE); +try { +fac.setFeature(javax.xml.XMLConstants.FEATURE_SECURE_PROCESSING, Boolean.TRUE); + fac.setFeature("http://xml.org/sax/features/external-general-entities";, false); + fac.setFeature("http://xml.org/sax/features/external-parameter-entities";, false); + fac.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd";, false); +} catch (ParserConfigurationException | SAXException ex) { +// LOG.debug("Error setting feature on parser: " + +// ex.getMessage()); +} fac.setValidating(false); final SAXParser parser = fac.newSAXParser(); XMLReader reader = parser.getXMLReader();
[camel-k] 04/05: fix(OLM): CSV name must be DNS-1123 subdomains and consist of lower case alphanumeric characters
This is an automated email from the ASF dual-hosted git repository. astefanutti pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-k.git commit f382fccfd96fcc3e6d703d54ff5fcffae0f5724d Author: Antonin Stefanutti AuthorDate: Fri Oct 11 11:02:23 2019 +0200 fix(OLM): CSV name must be DNS-1123 subdomains and consist of lower case alphanumeric characters --- .../camel-k/1.0.0-M2/camel-k.v1.0.0-M2.clusterserviceversion.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/olm-catalog/camel-k/1.0.0-M2/camel-k.v1.0.0-M2.clusterserviceversion.yaml b/deploy/olm-catalog/camel-k/1.0.0-M2/camel-k.v1.0.0-M2.clusterserviceversion.yaml index 59812d4..1dfff63 100644 --- a/deploy/olm-catalog/camel-k/1.0.0-M2/camel-k.v1.0.0-M2.clusterserviceversion.yaml +++ b/deploy/olm-catalog/camel-k/1.0.0-M2/camel-k.v1.0.0-M2.clusterserviceversion.yaml @@ -55,7 +55,7 @@ metadata: with serverless superpowers. repository: https://github.com/apache/camel-k support: Camel - name: camel-k-operator.v1.0.0-M2 + name: camel-k-operator.v1.0.0-m2 namespace: placeholder spec: apiservicedefinitions: {} @@ -382,4 +382,4 @@ spec: selector: matchLabels: name: camel-k-operator - version: 1.0.0-M2 + version: 1.0.0-m2
[GitHub] [camel-k] astefanutti merged pull request #1006: Update OLM manifests for 1.0.0-M2 release
astefanutti merged pull request #1006: Update OLM manifests for 1.0.0-M2 release URL: https://github.com/apache/camel-k/pull/1006 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[camel-k] 03/05: fix(OLM): Add required default channel to package manifest
This is an automated email from the ASF dual-hosted git repository. astefanutti pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-k.git commit 218114d5effa3695046d705ef3e71a943992b45a Author: Antonin Stefanutti AuthorDate: Fri Oct 11 10:55:00 2019 +0200 fix(OLM): Add required default channel to package manifest --- deploy/olm-catalog/camel-k/camel-k.package.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/deploy/olm-catalog/camel-k/camel-k.package.yaml b/deploy/olm-catalog/camel-k/camel-k.package.yaml index 7745dc1..a9318de 100644 --- a/deploy/olm-catalog/camel-k/camel-k.package.yaml +++ b/deploy/olm-catalog/camel-k/camel-k.package.yaml @@ -19,3 +19,4 @@ packageName: camel-k channels: - name: alpha currentCSV: camel-k-operator.v1.0.0-m2 +defaultChannel: alpha
[camel-k] 05/05: fix(OLM): fix 'replaces' field from 1.0.0-M2 CSV
This is an automated email from the ASF dual-hosted git repository. astefanutti pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-k.git commit c8e89bdcdb9485e27b3bb771602c50d8081e8894 Author: Antonin Stefanutti AuthorDate: Fri Oct 11 11:25:49 2019 +0200 fix(OLM): fix 'replaces' field from 1.0.0-M2 CSV --- .../camel-k/1.0.0-M2/camel-k.v1.0.0-M2.clusterserviceversion.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/olm-catalog/camel-k/1.0.0-M2/camel-k.v1.0.0-M2.clusterserviceversion.yaml b/deploy/olm-catalog/camel-k/1.0.0-M2/camel-k.v1.0.0-M2.clusterserviceversion.yaml index 1dfff63..5ab6527 100644 --- a/deploy/olm-catalog/camel-k/1.0.0-M2/camel-k.v1.0.0-M2.clusterserviceversion.yaml +++ b/deploy/olm-catalog/camel-k/1.0.0-M2/camel-k.v1.0.0-M2.clusterserviceversion.yaml @@ -378,7 +378,7 @@ spec: minKubeVersion: 1.11.0 provider: name: The Apache Software Foundation - replaces: camel-k.v1.0.0-m1 + replaces: camel-k-operator.v1.0.0-m1 selector: matchLabels: name: camel-k-operator
[camel-k] branch master updated (68f9cba -> c8e89bd)
This is an automated email from the ASF dual-hosted git repository. astefanutti pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/camel-k.git. from 68f9cba fix: Avoid updating Deployment replicas in default configuration new d944582 fix(OLM): Add missing roles for messaging.knative.dev group new 8dd31c9 chore(RBAC): Add license header to OLM roles resource new 218114d fix(OLM): Add required default channel to package manifest new f382fcc fix(OLM): CSV name must be DNS-1123 subdomains and consist of lower case alphanumeric characters new c8e89bd fix(OLM): fix 'replaces' field from 1.0.0-M2 CSV The 5 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .../camel-k.v1.0.0-M2.clusterserviceversion.yaml | 6 +++--- deploy/olm-catalog/camel-k/camel-k.package.yaml| 1 + deploy/operator-role-olm.yaml | 18 ++ 3 files changed, 22 insertions(+), 3 deletions(-)
[camel-k] 02/05: chore(RBAC): Add license header to OLM roles resource
This is an automated email from the ASF dual-hosted git repository. astefanutti pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-k.git commit 8dd31c9d62af0d62105d079b7b3d70c0e566c9a3 Author: Antonin Stefanutti AuthorDate: Fri Oct 11 10:53:03 2019 +0200 chore(RBAC): Add license header to OLM roles resource --- deploy/operator-role-olm.yaml | 17 + 1 file changed, 17 insertions(+) diff --git a/deploy/operator-role-olm.yaml b/deploy/operator-role-olm.yaml index 3c88bcc..945fcfb 100644 --- a/deploy/operator-role-olm.yaml +++ b/deploy/operator-role-olm.yaml @@ -1,3 +1,20 @@ +# --- +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# --- + kind: Role apiVersion: rbac.authorization.k8s.io/v1beta1 metadata:
[camel-k] 01/05: fix(OLM): Add missing roles for messaging.knative.dev group
This is an automated email from the ASF dual-hosted git repository. astefanutti pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-k.git commit d9445829aff68f0b5741a33d717d5386e7b91297 Author: Antonin Stefanutti AuthorDate: Fri Oct 11 10:41:00 2019 +0200 fix(OLM): Add missing roles for messaging.knative.dev group --- deploy/operator-role-olm.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/deploy/operator-role-olm.yaml b/deploy/operator-role-olm.yaml index ca1ee2f..3c88bcc 100644 --- a/deploy/operator-role-olm.yaml +++ b/deploy/operator-role-olm.yaml @@ -169,6 +169,7 @@ rules: - watch - apiGroups: - eventing.knative.dev + - messaging.knative.dev resources: - "*" verbs:
[GitHub] [camel-quarkus] coolbeevip opened a new issue #260: camel-quarkus parent pom when already have a parent pom
coolbeevip opened a new issue #260: camel-quarkus parent pom when already have a parent pom URL: https://github.com/apache/camel-quarkus/issues/260 I am a newcomer to Camel & Quarkus. I started a demo based on the user guide and there was a problem. My demo already have a parent pom, so I add `camel-quarkus-bom` to the dependency management section with scope=import. But I have the following error message when mvn clean package demo pom.xml ```xml http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"; xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> 4.0.0 org.coolbeevip camel-quickstart org.coolbeevip quarkus-parent 1.0.0-SNAPSHOT org.apache.camel.quarkus camel-quarkus-bom ${camel-quarkus.version} pom import io.quarkus quarkus-resteasy org.apache.camel.quarkus camel-quarkus-servlet org.apache.camel.quarkus camel-quarkus-rest org.apache.camel.quarkus camel-quarkus-core-cloud io.quarkus quarkus-junit5 test io.rest-assured rest-assured test ``` quarkus-parent pom.xml ```xml http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"; xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> 4.0.0 org.coolbeevip quarkus-parent pom 1.0.0-SNAPSHOT UTF-8 2.22.0 0.23.2 2.2.13 0.2.0 UTF-8 1.8 1.8 io.quarkus quarkus-bom ${quarkus.version} pom import io.reactivex.rxjava2 rxjava ${rxjava2.version} getting-started vertx-quickstart camel-quickstart io.quarkus quarkus-maven-plugin ${quarkus.version} build maven-surefire-plugin ${surefire-plugin.version} org.jboss.logmanager.LogManager native native io.quarkus quarkus-maven-plugin ${quarkus.version} native-image true maven-failsafe-plugin ${surefire-plugin.version} integration-test verify ${project.build.directory}/${project.build.finalName}-runner ``` build info ``` [INFO] [INFO] Total time: 5.917 s [INFO] Finished at: 2019-10-11T18:00:44+08:00 [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test (default-test) on project camel-quickstart: There are test failures. [ERROR] [ERROR] Please refer to /Users/zhanglei/github/quarkus-labs/camel-quickstart/target/surefire-reports for the individual test results. [ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException (base) bogon:camel-quickstart zhanglei$ (base) bogon:camel-quickstart zhanglei$ mvn clean package [INFO] Scanning for projects... [INFO] [INFO] --< org.coolbeevi
[camel] branch master updated (ed686ee -> adfacf4)
This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/camel.git. from ed686ee CAMEL-14052: camel-paho make it possible to configure all its options via compoent options that also works for Spring Boot add adfacf4 CAMEL-14025: add muteException option on camel-undertow component (#3236) No new revisions were added by this update. Summary of changes: .../src/main/docs/undertow-component.adoc | 3 +- .../undertow/DefaultUndertowHttpBinding.java | 21 +-- .../camel/component/undertow/UndertowConsumer.java | 3 +- .../camel/component/undertow/UndertowEndpoint.java | 22 +--- .../component/undertow/UndertowHttpBinding.java| 2 ++ ...ionTest.java => UndertowMuteExceptionTest.java} | 41 +++--- .../dsl/UndertowEndpointBuilderFactory.java| 27 ++ 7 files changed, 98 insertions(+), 21 deletions(-) copy components/camel-undertow/src/test/java/org/apache/camel/component/undertow/{UndertowTransferExceptionTest.java => UndertowMuteExceptionTest.java} (57%)
[camel] branch master updated (adfacf4 -> 1c114d8)
This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/camel.git. from adfacf4 CAMEL-14025: add muteException option on camel-undertow component (#3236) new eab9046 CAMEL-14025: Fixed CS new 1c114d8 CAMEL-14025: Add muteException as global option on undertow component so you can easily turn this on The 2 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .../camel-undertow/src/main/docs/undertow-component.adoc | 3 ++- .../component/undertow/DefaultUndertowHttpBinding.java | 7 ++- .../apache/camel/component/undertow/UndertowComponent.java | 14 ++ .../apache/camel/component/undertow/UndertowEndpoint.java | 6 +++--- .../camel/component/undertow/UndertowHttpBinding.java | 2 +- .../component/undertow/UndertowMuteExceptionTest.java | 9 ++--- .../endpoint/dsl/UndertowEndpointBuilderFactory.java | 7 +++ .../springboot/UndertowComponentConfiguration.java | 13 + 8 files changed, 40 insertions(+), 21 deletions(-)
[camel] 02/02: CAMEL-14025: Add muteException as global option on undertow component so you can easily turn this on
This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git commit 1c114d872b5268a9d358877e0c4cfcdfbd7a0be4 Author: Claus Ibsen AuthorDate: Fri Oct 11 12:49:10 2019 +0200 CAMEL-14025: Add muteException as global option on undertow component so you can easily turn this on --- .../camel-undertow/src/main/docs/undertow-component.adoc | 3 ++- .../apache/camel/component/undertow/UndertowComponent.java | 14 ++ .../apache/camel/component/undertow/UndertowEndpoint.java | 1 - .../endpoint/dsl/UndertowEndpointBuilderFactory.java | 7 +++ .../springboot/UndertowComponentConfiguration.java | 13 + 5 files changed, 32 insertions(+), 6 deletions(-) diff --git a/components/camel-undertow/src/main/docs/undertow-component.adoc b/components/camel-undertow/src/main/docs/undertow-component.adoc index 060f44f..e39185d 100644 --- a/components/camel-undertow/src/main/docs/undertow-component.adoc +++ b/components/camel-undertow/src/main/docs/undertow-component.adoc @@ -43,7 +43,7 @@ You can append query options to the URI in the following format, == Options // component options: START -The Undertow component supports 5 options, which are listed below. +The Undertow component supports 6 options, which are listed below. @@ -54,6 +54,7 @@ The Undertow component supports 5 options, which are listed below. | *sslContextParameters* (security) | To configure security using SSLContextParameters | | SSLContextParameters | *useGlobalSslContext Parameters* (security) | Enable usage of global SSL context parameters. | false | boolean | *hostOptions* (advanced) | To configure common options, such as thread pools | | UndertowHostOptions +| *muteException* (consumer) | If enabled and an Exchange failed processing on the consumer side the response's body won't contain the exception's stack trace. | false | boolean | *basicPropertyBinding* (advanced) | Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities | false | boolean |=== // component options: END diff --git a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowComponent.java b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowComponent.java index faa2b4c..7468b7e 100644 --- a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowComponent.java +++ b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowComponent.java @@ -69,6 +69,8 @@ public class UndertowComponent extends DefaultComponent implements RestConsumerF private boolean useGlobalSslContextParameters; @Metadata(label = "advanced") private UndertowHostOptions hostOptions; +@Metadata(label = "consumer", defaultValue = "false") +private boolean muteException; public UndertowComponent() { this(null); @@ -98,6 +100,7 @@ public class UndertowComponent extends DefaultComponent implements RestConsumerF UndertowEndpoint endpoint = createEndpointInstance(endpointUri, this); // set options from component endpoint.setSslContextParameters(sslParams); +endpoint.setMuteException(muteException); // Prefer endpoint configured over component configured if (undertowHttpBinding == null) { // fallback to component configured @@ -395,6 +398,17 @@ public class UndertowComponent extends DefaultComponent implements RestConsumerF this.hostOptions = hostOptions; } +public boolean isMuteException() { +return muteException; +} + +/** + * If enabled and an Exchange failed processing on the consumer side the response's body won't contain the exception's stack trace. + */ +public void setMuteException(boolean muteException) { +this.muteException = muteException; +} + public ComponentVerifierExtension getVerifier() { return (scope, parameters) -> getExtension(ComponentVerifierExtension.class).orElseThrow(UnsupportedOperationException::new).verify(scope, parameters); } diff --git a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowEndpoint.java b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowEndpoint.java index f2932e7..b4643ff 100644 --- a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowEndpoint.java +++ b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowEndpoint.java @@ -262,7 +262,6 @@ public class UndertowEndpoint extends DefaultEndpoint implements AsyncEndpoint, /** * If enabled and an Exchange failed processing on the consumer side the response's body won't contain the exception's stack trace. - * */
[camel] 01/02: CAMEL-14025: Fixed CS
This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git commit eab9046e4156f96ae16778b2693ba07e292b1aac Author: Claus Ibsen AuthorDate: Fri Oct 11 12:45:53 2019 +0200 CAMEL-14025: Fixed CS --- .../camel/component/undertow/DefaultUndertowHttpBinding.java | 7 ++- .../org/apache/camel/component/undertow/UndertowEndpoint.java| 5 +++-- .../org/apache/camel/component/undertow/UndertowHttpBinding.java | 2 +- .../camel/component/undertow/UndertowMuteExceptionTest.java | 9 ++--- 4 files changed, 8 insertions(+), 15 deletions(-) diff --git a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/DefaultUndertowHttpBinding.java b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/DefaultUndertowHttpBinding.java index f04f6d0..778e6a2 100644 --- a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/DefaultUndertowHttpBinding.java +++ b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/DefaultUndertowHttpBinding.java @@ -47,7 +47,6 @@ import org.apache.camel.Message; import org.apache.camel.TypeConverter; import org.apache.camel.attachment.AttachmentMessage; import org.apache.camel.attachment.DefaultAttachment; -import org.apache.camel.attachment.DefaultAttachmentMessage; import org.apache.camel.spi.HeaderFilterStrategy; import org.apache.camel.support.DefaultMessage; import org.apache.camel.support.ExchangeHelper; @@ -375,10 +374,8 @@ public class DefaultUndertowHttpBinding implements UndertowHttpBinding { // and mark the exception as failure handled, as we handled it by returning it as the response ExchangeHelper.setFailureHandled(message.getExchange()); -} -else if (exception != null && isMuteException()) { - - // mark the exception as failure handled, as we handled it by actively muting it +} else if (exception != null && isMuteException()) { +// mark the exception as failure handled, as we handled it by actively muting it ExchangeHelper.setFailureHandled(message.getExchange()); } diff --git a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowEndpoint.java b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowEndpoint.java index bf1b934..f2932e7 100644 --- a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowEndpoint.java +++ b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowEndpoint.java @@ -16,12 +16,13 @@ */ package org.apache.camel.component.undertow; -import io.undertow.server.HttpServerExchange; -import io.undertow.server.handlers.accesslog.AccessLogReceiver; import java.net.URI; import java.util.Locale; import java.util.Map; import javax.net.ssl.SSLContext; + +import io.undertow.server.HttpServerExchange; +import io.undertow.server.handlers.accesslog.AccessLogReceiver; import org.apache.camel.AsyncEndpoint; import org.apache.camel.Consumer; import org.apache.camel.Exchange; diff --git a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowHttpBinding.java b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowHttpBinding.java index e0f03c9..17c35c8 100644 --- a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowHttpBinding.java +++ b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowHttpBinding.java @@ -48,6 +48,6 @@ public interface UndertowHttpBinding { void setTransferException(Boolean transferException); -void setMuteException(Boolean MuteException); +void setMuteException(Boolean muteException); } diff --git a/components/camel-undertow/src/test/java/org/apache/camel/component/undertow/UndertowMuteExceptionTest.java b/components/camel-undertow/src/test/java/org/apache/camel/component/undertow/UndertowMuteExceptionTest.java index 5fe5d37..970815e 100644 --- a/components/camel-undertow/src/test/java/org/apache/camel/component/undertow/UndertowMuteExceptionTest.java +++ b/components/camel-undertow/src/test/java/org/apache/camel/component/undertow/UndertowMuteExceptionTest.java @@ -22,13 +22,10 @@ import org.apache.commons.httpclient.methods.GetMethod; import org.junit.Assert; import org.junit.Test; -import java.io.IOException; -import java.io.ObjectInputStream; - public class UndertowMuteExceptionTest extends BaseUndertowTest { @Test -public void muteExceptionTest() throws IOException, ClassNotFoundException { +public void muteExceptionTest() throws Exception { HttpClient client = new HttpClient(); GetMethod get = new GetMethod("http://localhost:"; + getPort() + "/test/mute"); ge
[camel] branch master updated: CAMEL-14047: Allow unset producerName to get unique name from Pulsar (#3237)
This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git The following commit(s) were added to refs/heads/master by this push: new 86e3762 CAMEL-14047: Allow unset producerName to get unique name from Pulsar (#3237) 86e3762 is described below commit 86e37622a8986b3de8efc0ad9b042aab3fd89d2d Author: William Thompson AuthorDate: Fri Oct 11 06:50:16 2019 -0400 CAMEL-14047: Allow unset producerName to get unique name from Pulsar (#3237) * Allow null ProducerName to get unique name from Pulsar * Remove explicit null declaration * Update javadoc, generate adoc and PulsarEndpointBuilderFactory --- .../src/main/docs/pulsar-component.adoc| 2 +- .../camel/component/pulsar/PulsarProducer.java | 8 +- .../pulsar/configuration/PulsarConfiguration.java | 6 +- .../component/pulsar/PulsarComponentTest.java | 2 +- .../PulsarProducerUndefinedProducerNameInTest.java | 111 + .../endpoint/dsl/PulsarEndpointBuilderFactory.java | 3 +- 6 files changed, 122 insertions(+), 10 deletions(-) diff --git a/components/camel-pulsar/src/main/docs/pulsar-component.adoc b/components/camel-pulsar/src/main/docs/pulsar-component.adoc index 3e19465..d2eb07a 100644 --- a/components/camel-pulsar/src/main/docs/pulsar-component.adoc +++ b/components/camel-pulsar/src/main/docs/pulsar-component.adoc @@ -98,7 +98,7 @@ with the following path and query parameters: | *maxPendingMessagesAcross Partitions* (producer) | Set the number of max pending messages across all the partitions. Default is 5. | 5 | int | *messageRouter* (producer) | Set a custom Message Router. | | MessageRouter | *messageRoutingMode* (producer) | Set the message routing mode for the producer. | RoundRobinPartition | MessageRoutingMode -| *producerName* (producer) | Name of the producer | default-producer | String +| *producerName* (producer) | Name of the producer. If unset, lets Pulsar select a unique identifier. | | String | *sendTimeoutMs* (producer) | Send timeout in milliseconds. Defaults to 30,000ms (30 seconds) | 3 | int | *basicPropertyBinding* (advanced) | Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities | false | boolean | *synchronous* (advanced) | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). | false | boolean diff --git a/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/PulsarProducer.java b/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/PulsarProducer.java index 5503949..efc78ba 100644 --- a/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/PulsarProducer.java +++ b/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/PulsarProducer.java @@ -57,10 +57,7 @@ public class PulsarProducer extends DefaultProducer { final String topicUri = pulsarEndpoint.getUri(); PulsarConfiguration configuration = pulsarEndpoint.getPulsarConfiguration(); String producerName = configuration.getProducerName(); -if (producerName == null) { -producerName = topicUri + "-" + Thread.currentThread().getId(); -} -final ProducerBuilder producerBuilder = pulsarEndpoint.getPulsarClient().newProducer().producerName(producerName).topic(topicUri) +final ProducerBuilder producerBuilder = pulsarEndpoint.getPulsarClient().newProducer().topic(topicUri) .sendTimeout(configuration.getSendTimeoutMs(), TimeUnit.MILLISECONDS).blockIfQueueFull(configuration.isBlockIfQueueFull()) .maxPendingMessages(configuration.getMaxPendingMessages()).maxPendingMessagesAcrossPartitions(configuration.getMaxPendingMessagesAcrossPartitions()) .batchingMaxPublishDelay(configuration.getBatchingMaxPublishDelayMicros(), TimeUnit.MICROSECONDS).batchingMaxMessages(configuration.getMaxPendingMessages()) @@ -70,6 +67,9 @@ public class PulsarProducer extends DefaultProducer { } else { producerBuilder.messageRoutingMode(configuration.getMessageRoutingMode()); } +if (producerName != null) { +producerBuilder.producerName(producerName); +} producer = producerBuilder.create(); } } diff --git a/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/configuration/PulsarConfiguration.java b/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/configuration/PulsarConfiguration.java index 50b9778..d6bdcb8 100644 --- a/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/configuration/PulsarConfiguration.java +++ b/components/camel-pulsar/
[camel] branch master updated: CAMEL-13875: Support for MicroProfile Health
This is an automated email from the ASF dual-hosted git repository. jamesnetherton pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git The following commit(s) were added to refs/heads/master by this push: new 95e6073 CAMEL-13875: Support for MicroProfile Health 95e6073 is described below commit 95e6073272a39fcc8e76e46a94d77d9132d1be5f Author: James Netherton AuthorDate: Fri Oct 11 10:40:15 2019 +0100 CAMEL-13875: Support for MicroProfile Health --- apache-camel/pom.xml | 5 + apache-camel/src/main/descriptors/common-bin.xml | 1 + bom/camel-bom/pom.xml | 5 + components/camel-microprofile-health/pom.xml | 116 ++ .../main/docs/microprofile-health-component.adoc | 48 + .../AbstractCamelMicroProfileHealthCheck.java | 95 + .../AbstractCamelMicroProfileLivenessCheck.java| 37 .../AbstractCamelMicroProfileReadinessCheck.java | 37 .../health/CamelMicroProfileContextCheck.java | 81 +++ .../health/CamelMicroProfileLivenessCheck.java | 33 +++ .../health/CamelMicroProfileReadinessCheck.java| 33 +++ ...CamelMicroProfileHealthCheckRepositoryTest.java | 89 .../health/CamelMicroProfileHealthCheckTest.java | 233 + .../health/CamelMicroProfileHealthTestSupport.java | 87 .../src/test/resources/log4j2.properties | 28 +++ components/pom.xml | 1 + components/readme.adoc | 4 +- docs/components/modules/ROOT/nav.adoc | 1 + .../ROOT/pages/microprofile-health-component.adoc | 47 + parent/pom.xml | 9 +- .../camel-spring-boot-dependencies/pom.xml | 5 + .../maven/packaging/SpringBootStarterMojo.java | 1 + 22 files changed, 994 insertions(+), 2 deletions(-) diff --git a/apache-camel/pom.xml b/apache-camel/pom.xml index 505dd0a..4ef03c1 100644 --- a/apache-camel/pom.xml +++ b/apache-camel/pom.xml @@ -998,6 +998,11 @@ org.apache.camel + camel-microprofile-health + ${project.version} + + + org.apache.camel camel-microprofile-metrics ${project.version} diff --git a/apache-camel/src/main/descriptors/common-bin.xml b/apache-camel/src/main/descriptors/common-bin.xml index 404e758..1e65b8b 100644 --- a/apache-camel/src/main/descriptors/common-bin.xml +++ b/apache-camel/src/main/descriptors/common-bin.xml @@ -220,6 +220,7 @@ org.apache.camel:camel-metrics org.apache.camel:camel-micrometer org.apache.camel:camel-microprofile-config +org.apache.camel:camel-microprofile-health org.apache.camel:camel-microprofile-metrics org.apache.camel:camel-milo org.apache.camel:camel-mina diff --git a/bom/camel-bom/pom.xml b/bom/camel-bom/pom.xml index a15a7cb..9a05f39 100644 --- a/bom/camel-bom/pom.xml +++ b/bom/camel-bom/pom.xml @@ -1910,6 +1910,11 @@ org.apache.camel +camel-microprofile-health +${project.version} + + +org.apache.camel camel-microprofile-metrics ${project.version} diff --git a/components/camel-microprofile-health/pom.xml b/components/camel-microprofile-health/pom.xml new file mode 100644 index 000..fb98851 --- /dev/null +++ b/components/camel-microprofile-health/pom.xml @@ -0,0 +1,116 @@ + + +http://www.w3.org/2001/XMLSchema-instance"; xmlns="http://maven.apache.org/POM/4.0.0"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd";> +4.0.0 + + +org.apache.camel +components +3.0.0-SNAPSHOT + + +camel-microprofile-health +jar + +Camel :: MicroProfile Health +Bridging Eclipse MicroProfile Health with Camel health checks + + +3.0.0 +microservice + + + + + +org.apache.camel +camel-base +${project.version} + + + +org.eclipse.microprofile.health +microprofile-health-api +${microprofile-health-version} +provided + + + + +org.apache.camel +camel-test +test + + + +io.smallrye +smallrye-health +${smallrye-health-version} +test + + +io.smallrye +smallrye-config-1.3 +${smallrye-config-version} +test + + + + +org.apache.geronimo.specs +geronimo-json_1.1_spec +${geronimo-json-spec-version} +test + + +org.apache.johnzon +johnzon-core +${johnzon-version} +test + + + +
[GitHub] [camel-k] astefanutti closed issue #1004: Pubilsh Camel K 1.0.0-M2 to operator hub
astefanutti closed issue #1004: Pubilsh Camel K 1.0.0-M2 to operator hub URL: https://github.com/apache/camel-k/issues/1004 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-k] astefanutti commented on issue #1004: Pubilsh Camel K 1.0.0-M2 to operator hub
astefanutti commented on issue #1004: Pubilsh Camel K 1.0.0-M2 to operator hub URL: https://github.com/apache/camel-k/issues/1004#issuecomment-541016907 Done with: * operator-framework/community-operators#760 * operator-framework/community-operators#761 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] ppalaga commented on issue #260: camel-quarkus parent pom when already have a parent pom
ppalaga commented on issue #260: camel-quarkus parent pom when already have a parent pom URL: https://github.com/apache/camel-quarkus/issues/260#issuecomment-541019278 Thanks for the report. I see 11 occurrences of `mvn clean package` in your log. Could you please remove 10 and leave the most significant one so that I do not need to go through so many lines? This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] ppalaga commented on issue #260: camel-quarkus parent pom when already have a parent pom
ppalaga commented on issue #260: camel-quarkus parent pom when already have a parent pom URL: https://github.com/apache/camel-quarkus/issues/260#issuecomment-541019871 I do not see `quarkus-maven-plugin:0.23.2:build` in your last build. It should definitely be there. Running maven with `-e` could help too. This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[camel] branch camel-2.x updated: CAMEL-14047: 2.x port - Allow unset producerName to get unique name from Pulsar (#3238)
This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch camel-2.x in repository https://gitbox.apache.org/repos/asf/camel.git The following commit(s) were added to refs/heads/camel-2.x by this push: new e7be0a2 CAMEL-14047: 2.x port - Allow unset producerName to get unique name from Pulsar (#3238) e7be0a2 is described below commit e7be0a2219fb53f23b5dcbd48938fe27da432daf Author: William Thompson AuthorDate: Fri Oct 11 07:16:32 2019 -0400 CAMEL-14047: 2.x port - Allow unset producerName to get unique name from Pulsar (#3238) * Allow null ProducerName to get unique name from Pulsar cherry-pick to 2.x * Backport test to Camel 2.x * Remove explicit null declaration --- .../src/main/docs/pulsar-component.adoc| 2 +- .../camel/component/pulsar/PulsarProducer.java | 8 +- .../pulsar/configuration/PulsarConfiguration.java | 4 +- .../component/pulsar/PulsarComponentTest.java | 2 +- .../PulsarProducerUndefinedProducerNameInTest.java | 107 + 5 files changed, 114 insertions(+), 9 deletions(-) diff --git a/components/camel-pulsar/src/main/docs/pulsar-component.adoc b/components/camel-pulsar/src/main/docs/pulsar-component.adoc index 67e1e37..dfa4280 100644 --- a/components/camel-pulsar/src/main/docs/pulsar-component.adoc +++ b/components/camel-pulsar/src/main/docs/pulsar-component.adoc @@ -88,7 +88,7 @@ with the following path and query parameters: | *initialSequenceId* (producer) | Set the baseline for the sequence ids for messages published by the producer. First message will be using (initialSequenceId 1) as its sequence id and subsequent messages will be assigned incremental sequence ids, if not otherwise specified. | -1 | long | *maxPendingMessages* (producer) | Set the max size of the queue holding the messages pending to receive an acknowledgment from the broker. Default is 1000. | 1000 | int | *maxPendingMessagesAcross Partitions* (producer) | Set the number of max pending messages across all the partitions. Default is 5. | 5 | int -| *producerName* (producer) | Name of the producer | default-producer | String +| *producerName* (producer) | Name of the producer, if unset lets Pulsar select a unique identifier | | String | *sendTimeoutMs* (producer) | Send timeout in milliseconds. Defaults to 30,000ms (30 seconds) | 3 | int | *synchronous* (advanced) | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). | false | boolean |=== diff --git a/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/PulsarProducer.java b/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/PulsarProducer.java index 1d6673a..f583597 100644 --- a/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/PulsarProducer.java +++ b/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/PulsarProducer.java @@ -58,13 +58,9 @@ public class PulsarProducer extends DefaultProducer { final String topicUri = pulsarEndpoint.getTopicUri(); PulsarConfiguration configuration = pulsarEndpoint.getPulsarConfiguration(); String producerName = configuration.getProducerName(); -if (producerName == null) { -producerName = topicUri + "-" + Thread.currentThread().getId(); -} final ProducerBuilder producerBuilder = pulsarEndpoint .getPulsarClient() .newProducer() -.producerName(producerName) .topic(topicUri) .sendTimeout(configuration.getSendTimeoutMs(), TimeUnit.MILLISECONDS) .blockIfQueueFull(configuration.isBlockIfQueueFull()) @@ -75,7 +71,9 @@ public class PulsarProducer extends DefaultProducer { .enableBatching(configuration.isBatchingEnabled()) .initialSequenceId(configuration.getInitialSequenceId()) .compressionType(configuration.getCompressionType()); - +if (producerName != null) { +producerBuilder.producerName(producerName); +} producer = producerBuilder.create(); } } diff --git a/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/configuration/PulsarConfiguration.java b/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/configuration/PulsarConfiguration.java index fa4772f..8fb3022 100644 --- a/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/configuration/PulsarConfiguration.java +++ b/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/configuration/PulsarConfiguration.java @@ -38,8 +38,8 @@ public class PulsarConfiguration { private int consumerQueueSize = 10; @UriParam(label = "consumer", de
[camel] branch camel-2.x updated (e7be0a2 -> 75a5125)
This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a change to branch camel-2.x in repository https://gitbox.apache.org/repos/asf/camel.git. from e7be0a2 CAMEL-14047: 2.x port - Allow unset producerName to get unique name from Pulsar (#3238) new 86c9625 Regen new 75a5125 CAMEL-14047: Fixed CS The 2 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .../camel-as2/camel-as2-component/src/main/docs/as2-component.adoc | 4 ++-- components/camel-irc/src/main/docs/irc-component.adoc| 5 +++-- components/camel-pulsar/src/main/docs/pulsar-component.adoc | 4 ++-- .../camel/component/pulsar/configuration/PulsarConfiguration.java| 2 +- .../component/pulsar/PulsarProducerUndefinedProducerNameInTest.java | 2 +- .../java/org/apache/camel/component/pulsar/PulsarTestSupport.java| 2 +- 6 files changed, 10 insertions(+), 9 deletions(-)
[camel] 01/02: Regen
This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch camel-2.x in repository https://gitbox.apache.org/repos/asf/camel.git commit 86c962562e390eb3dd680aec001613eb3a7cc6e8 Author: Claus Ibsen AuthorDate: Fri Oct 11 13:16:13 2019 +0200 Regen --- .../camel-as2/camel-as2-component/src/main/docs/as2-component.adoc | 4 ++-- components/camel-irc/src/main/docs/irc-component.adoc| 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/components/camel-as2/camel-as2-component/src/main/docs/as2-component.adoc b/components/camel-as2/camel-as2-component/src/main/docs/as2-component.adoc index 48db9f8..fc7a3e4 100644 --- a/components/camel-as2/camel-as2-component/src/main/docs/as2-component.adoc +++ b/components/camel-as2/camel-as2-component/src/main/docs/as2-component.adoc @@ -64,7 +64,7 @@ as2:apiName with the following path and query parameters: - Path Parameters (1 parameters): +=== Path Parameters (1 parameters): [width="100%",cols="2,5,^1,2",options="header"] @@ -74,7 +74,7 @@ with the following path and query parameters: |=== - Query Parameters (31 parameters): +=== Query Parameters (31 parameters): [width="100%",cols="2,5,^1,2",options="header"] diff --git a/components/camel-irc/src/main/docs/irc-component.adoc b/components/camel-irc/src/main/docs/irc-component.adoc index 5028eb5..1228ee2 100644 --- a/components/camel-irc/src/main/docs/irc-component.adoc +++ b/components/camel-irc/src/main/docs/irc-component.adoc @@ -2,6 +2,7 @@ = IRC Component *Available as of Camel version 1.1* + *Available as of Camel version 1.1* @@ -65,7 +66,7 @@ irc:hostname:port with the following path and query parameters: - Path Parameters (2 parameters): +=== Path Parameters (2 parameters): [width="100%",cols="2,5,^1,2",options="header"] @@ -76,7 +77,7 @@ with the following path and query parameters: |=== - Query Parameters (25 parameters): +=== Query Parameters (25 parameters): [width="100%",cols="2,5,^1,2",options="header"]
[camel] 02/02: CAMEL-14047: Fixed CS
This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch camel-2.x in repository https://gitbox.apache.org/repos/asf/camel.git commit 75a5125d300a28b12e1fd8e1a508556739aa442e Author: Claus Ibsen AuthorDate: Fri Oct 11 13:18:58 2019 +0200 CAMEL-14047: Fixed CS --- components/camel-pulsar/src/main/docs/pulsar-component.adoc | 4 ++-- .../camel/component/pulsar/configuration/PulsarConfiguration.java | 2 +- .../component/pulsar/PulsarProducerUndefinedProducerNameInTest.java | 2 +- .../java/org/apache/camel/component/pulsar/PulsarTestSupport.java | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/camel-pulsar/src/main/docs/pulsar-component.adoc b/components/camel-pulsar/src/main/docs/pulsar-component.adoc index dfa4280..26d5fa8 100644 --- a/components/camel-pulsar/src/main/docs/pulsar-component.adoc +++ b/components/camel-pulsar/src/main/docs/pulsar-component.adoc @@ -88,7 +88,7 @@ with the following path and query parameters: | *initialSequenceId* (producer) | Set the baseline for the sequence ids for messages published by the producer. First message will be using (initialSequenceId 1) as its sequence id and subsequent messages will be assigned incremental sequence ids, if not otherwise specified. | -1 | long | *maxPendingMessages* (producer) | Set the max size of the queue holding the messages pending to receive an acknowledgment from the broker. Default is 1000. | 1000 | int | *maxPendingMessagesAcross Partitions* (producer) | Set the number of max pending messages across all the partitions. Default is 5. | 5 | int -| *producerName* (producer) | Name of the producer, if unset lets Pulsar select a unique identifier | | String +| *producerName* (producer) | Name of the producer, if unset lets Pulsar select a unique identifier | | String | *sendTimeoutMs* (producer) | Send timeout in milliseconds. Defaults to 30,000ms (30 seconds) | 3 | int | *synchronous* (advanced) | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). | false | boolean |=== @@ -120,4 +120,4 @@ The component supports 3 options, which are listed below. | *camel.component.pulsar.pulsar-client* | The pulsar client. The option is a org.apache.pulsar.client.api.PulsarClient type. | | String | *camel.component.pulsar.resolve-property-placeholders* | Whether the component should resolve property placeholders on itself when starting. Only properties which are of String type can use property placeholders. | true | Boolean |=== -// spring-boot-auto-configure options: END \ No newline at end of file +// spring-boot-auto-configure options: END diff --git a/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/configuration/PulsarConfiguration.java b/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/configuration/PulsarConfiguration.java index 8fb3022..20c29eb 100644 --- a/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/configuration/PulsarConfiguration.java +++ b/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/configuration/PulsarConfiguration.java @@ -124,7 +124,7 @@ public class PulsarConfiguration { } /** - * Name of the producer + * Name of the producer, if unset lets Pulsar select a unique identifier */ public void setProducerName(String producerName) { this.producerName = producerName; diff --git a/components/camel-pulsar/src/test/java/org/apache/camel/component/pulsar/PulsarProducerUndefinedProducerNameInTest.java b/components/camel-pulsar/src/test/java/org/apache/camel/component/pulsar/PulsarProducerUndefinedProducerNameInTest.java index 5085730..0f9d93d 100644 --- a/components/camel-pulsar/src/test/java/org/apache/camel/component/pulsar/PulsarProducerUndefinedProducerNameInTest.java +++ b/components/camel-pulsar/src/test/java/org/apache/camel/component/pulsar/PulsarProducerUndefinedProducerNameInTest.java @@ -1,4 +1,4 @@ -/* +/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. diff --git a/components/camel-pulsar/src/test/java/org/apache/camel/component/pulsar/PulsarTestSupport.java b/components/camel-pulsar/src/test/java/org/apache/camel/component/pulsar/PulsarTestSupport.java index 1826a2c..f3ecb3c 100644 --- a/components/camel-pulsar/src/test/java/org/apache/camel/component/pulsar/PulsarTestSupport.java +++ b/components/camel-pulsar/src/test/java/org/apache/camel/component/pulsar/PulsarTestSupport.java @@ -1,4 +1,4 @@ -/* +/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regardin
[camel] branch camel-2.x updated: Regen
This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch camel-2.x in repository https://gitbox.apache.org/repos/asf/camel.git The following commit(s) were added to refs/heads/camel-2.x by this push: new 5ea4546 Regen 5ea4546 is described below commit 5ea4546a7b868216c46d1d0430af976d3c07d3b4 Author: Claus Ibsen AuthorDate: Fri Oct 11 13:24:04 2019 +0200 Regen --- docs/components/modules/ROOT/pages/as2-component.adoc| 4 ++-- docs/components/modules/ROOT/pages/irc-component.adoc| 5 +++-- docs/components/modules/ROOT/pages/pulsar-component.adoc | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/components/modules/ROOT/pages/as2-component.adoc b/docs/components/modules/ROOT/pages/as2-component.adoc index c406805..4c50876 100644 --- a/docs/components/modules/ROOT/pages/as2-component.adoc +++ b/docs/components/modules/ROOT/pages/as2-component.adoc @@ -65,7 +65,7 @@ as2:apiName with the following path and query parameters: - Path Parameters (1 parameters): +=== Path Parameters (1 parameters): [width="100%",cols="2,5,^1,2",options="header"] @@ -75,7 +75,7 @@ with the following path and query parameters: |=== - Query Parameters (31 parameters): +=== Query Parameters (31 parameters): [width="100%",cols="2,5,^1,2",options="header"] diff --git a/docs/components/modules/ROOT/pages/irc-component.adoc b/docs/components/modules/ROOT/pages/irc-component.adoc index 846145c..a0c9afe 100644 --- a/docs/components/modules/ROOT/pages/irc-component.adoc +++ b/docs/components/modules/ROOT/pages/irc-component.adoc @@ -3,6 +3,7 @@ :page-source: components/camel-irc/src/main/docs/irc-component.adoc *Available as of Camel version 1.1* + *Available as of Camel version 1.1* @@ -66,7 +67,7 @@ irc:hostname:port with the following path and query parameters: - Path Parameters (2 parameters): +=== Path Parameters (2 parameters): [width="100%",cols="2,5,^1,2",options="header"] @@ -77,7 +78,7 @@ with the following path and query parameters: |=== - Query Parameters (25 parameters): +=== Query Parameters (25 parameters): [width="100%",cols="2,5,^1,2",options="header"] diff --git a/docs/components/modules/ROOT/pages/pulsar-component.adoc b/docs/components/modules/ROOT/pages/pulsar-component.adoc index b5e9041..e48416d 100644 --- a/docs/components/modules/ROOT/pages/pulsar-component.adoc +++ b/docs/components/modules/ROOT/pages/pulsar-component.adoc @@ -89,7 +89,7 @@ with the following path and query parameters: | *initialSequenceId* (producer) | Set the baseline for the sequence ids for messages published by the producer. First message will be using (initialSequenceId 1) as its sequence id and subsequent messages will be assigned incremental sequence ids, if not otherwise specified. | -1 | long | *maxPendingMessages* (producer) | Set the max size of the queue holding the messages pending to receive an acknowledgment from the broker. Default is 1000. | 1000 | int | *maxPendingMessagesAcross Partitions* (producer) | Set the number of max pending messages across all the partitions. Default is 5. | 5 | int -| *producerName* (producer) | Name of the producer | default-producer | String +| *producerName* (producer) | Name of the producer, if unset lets Pulsar select a unique identifier | | String | *sendTimeoutMs* (producer) | Send timeout in milliseconds. Defaults to 30,000ms (30 seconds) | 3 | int | *synchronous* (advanced) | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). | false | boolean |=== @@ -121,4 +121,4 @@ The component supports 3 options, which are listed below. | *camel.component.pulsar.pulsar-client* | The pulsar client. The option is a org.apache.pulsar.client.api.PulsarClient type. | | String | *camel.component.pulsar.resolve-property-placeholders* | Whether the component should resolve property placeholders on itself when starting. Only properties which are of String type can use property placeholders. | true | Boolean |=== -// spring-boot-auto-configure options: END \ No newline at end of file +// spring-boot-auto-configure options: END
[GitHub] [camel-quarkus] ppalaga commented on issue #259: Adapt the User guide to refer to the new example rather than the servlet itest
ppalaga commented on issue #259: Adapt the User guide to refer to the new example rather than the servlet itest URL: https://github.com/apache/camel-quarkus/issues/259#issuecomment-541026376 Plz assign to me. This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-k] nicolaferraro opened a new pull request #1007: fix #1005: allow to customize loader and add default dependencies for…
nicolaferraro opened a new pull request #1007: fix #1005: allow to customize loader and add default dependencies for… URL: https://github.com/apache/camel-k/pull/1007 … knative-source loader This adds possibility to use a custom loader and automatically detects dependencies for Knative loader. **Release Note** ```release-note Integration custom resource allows to specify the runtime loader to use for each source ``` This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[camel] branch master updated (95e6073 -> 1da157e)
This is an automated email from the ASF dual-hosted git repository. acosentino pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/camel.git. from 95e6073 CAMEL-13875: Support for MicroProfile Health new fd0c5ee Allow null ProducerName to get unique name from Pulsar new c096e06 Remove explicit null declaration new 8e2025e Update javadoc, generate adoc and PulsarEndpointBuilderFactory new 1da157e Merge branch 'master' of github.com:apache/camel The 4 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes:
[camel] 02/04: Remove explicit null declaration
This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git commit c096e0622ad92e0b3485921fcf75abba20891b3a Author: William Thompson AuthorDate: Thu Oct 10 11:42:11 2019 -0400 Remove explicit null declaration --- .../camel/component/pulsar/configuration/PulsarConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/configuration/PulsarConfiguration.java b/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/configuration/PulsarConfiguration.java index 96b5b4f..e8098be 100644 --- a/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/configuration/PulsarConfiguration.java +++ b/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/configuration/PulsarConfiguration.java @@ -42,7 +42,7 @@ public class PulsarConfiguration { @UriParam(label = "consumer", defaultValue = "sole-consumer") private String consumerName = "sole-consumer"; @UriParam(label = "producer") -private String producerName = null; +private String producerName; @UriParam(label = "consumer", defaultValue = "cons") private String consumerNamePrefix = "cons"; @UriParam(label = "consumer", defaultValue = "false")
[camel] 04/04: Merge branch 'master' of github.com:apache/camel
This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git commit 1da157e96773ec5a34fae652f9f5429a1607f618 Merge: 8e2025e 95e6073 Author: Andrea Cosentino AuthorDate: Fri Oct 11 12:57:03 2019 +0200 Merge branch 'master' of github.com:apache/camel apache-camel/pom.xml |5 + apache-camel/src/main/descriptors/common-bin.xml |1 + bom/camel-bom/pom.xml |5 + components/camel-microprofile-health/pom.xml | 116 ++ .../main/docs/microprofile-health-component.adoc | 48 + .../AbstractCamelMicroProfileHealthCheck.java | 95 + .../AbstractCamelMicroProfileLivenessCheck.java| 37 + .../AbstractCamelMicroProfileReadinessCheck.java | 37 + .../health/CamelMicroProfileContextCheck.java | 81 + .../health/CamelMicroProfileLivenessCheck.java | 33 + .../health/CamelMicroProfileReadinessCheck.java| 33 + ...CamelMicroProfileHealthCheckRepositoryTest.java | 89 + .../health/CamelMicroProfileHealthCheckTest.java | 233 +++ .../health/CamelMicroProfileHealthTestSupport.java | 87 + .../src/test/resources/log4j2.properties | 28 + .../camel-paho/src/main/docs/paho-component.adoc | 67 +- .../apache/camel/component/paho/PahoComponent.java | 91 +- .../camel/component/paho/PahoConfiguration.java| 581 ++ .../apache/camel/component/paho/PahoConsumer.java | 71 +- .../apache/camel/component/paho/PahoEndpoint.java | 281 +-- .../apache/camel/component/paho/PahoProducer.java | 51 +- .../camel/component/paho/PahoComponentTest.java| 34 +- .../component/paho/PahoOverrideTopicTest.java | 12 +- .../processor/SchematronProcessorFactory.java | 10 +- .../src/main/docs/undertow-component.adoc |6 +- .../undertow/DefaultUndertowHttpBinding.java | 20 +- .../component/undertow/UndertowComponent.java | 14 + .../camel/component/undertow/UndertowConsumer.java |3 +- .../camel/component/undertow/UndertowEndpoint.java | 16 +- .../component/undertow/UndertowHttpBinding.java|2 + .../undertow/UndertowMuteExceptionTest.java| 67 + components/pom.xml |1 + components/readme.adoc |4 +- .../endpoint/dsl/PahoEndpointBuilderFactory.java | 1857 ++-- .../dsl/UndertowEndpointBuilderFactory.java| 26 + docs/components/modules/ROOT/nav.adoc |1 + .../ROOT/pages/microprofile-health-component.adoc | 47 + parent/pom.xml |9 +- .../springboot/PahoComponentConfiguration.java | 525 +- .../springboot/UndertowComponentConfiguration.java | 13 + .../camel-spring-boot-dependencies/pom.xml |5 + .../maven/packaging/SpringBootStarterMojo.java |1 + 42 files changed, 4235 insertions(+), 508 deletions(-)
[camel] 01/04: Allow null ProducerName to get unique name from Pulsar
This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git commit fd0c5ee95b65bf2e593bf967e92178b3fa49cb76 Author: William Thompson AuthorDate: Wed Oct 9 16:32:54 2019 -0400 Allow null ProducerName to get unique name from Pulsar --- .../src/main/docs/pulsar-component.adoc| 2 +- .../camel/component/pulsar/PulsarProducer.java | 8 +- .../pulsar/configuration/PulsarConfiguration.java | 4 +- .../component/pulsar/PulsarComponentTest.java | 2 +- .../PulsarProducerUndefinedProducerNameInTest.java | 111 + 5 files changed, 119 insertions(+), 8 deletions(-) diff --git a/components/camel-pulsar/src/main/docs/pulsar-component.adoc b/components/camel-pulsar/src/main/docs/pulsar-component.adoc index 3e19465..6044f24 100644 --- a/components/camel-pulsar/src/main/docs/pulsar-component.adoc +++ b/components/camel-pulsar/src/main/docs/pulsar-component.adoc @@ -98,7 +98,7 @@ with the following path and query parameters: | *maxPendingMessagesAcross Partitions* (producer) | Set the number of max pending messages across all the partitions. Default is 5. | 5 | int | *messageRouter* (producer) | Set a custom Message Router. | | MessageRouter | *messageRoutingMode* (producer) | Set the message routing mode for the producer. | RoundRobinPartition | MessageRoutingMode -| *producerName* (producer) | Name of the producer | default-producer | String +| *producerName* (producer) | Name of the producer, if unset lets Pulsar select a unique identifier | | String | *sendTimeoutMs* (producer) | Send timeout in milliseconds. Defaults to 30,000ms (30 seconds) | 3 | int | *basicPropertyBinding* (advanced) | Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities | false | boolean | *synchronous* (advanced) | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). | false | boolean diff --git a/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/PulsarProducer.java b/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/PulsarProducer.java index 5503949..efc78ba 100644 --- a/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/PulsarProducer.java +++ b/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/PulsarProducer.java @@ -57,10 +57,7 @@ public class PulsarProducer extends DefaultProducer { final String topicUri = pulsarEndpoint.getUri(); PulsarConfiguration configuration = pulsarEndpoint.getPulsarConfiguration(); String producerName = configuration.getProducerName(); -if (producerName == null) { -producerName = topicUri + "-" + Thread.currentThread().getId(); -} -final ProducerBuilder producerBuilder = pulsarEndpoint.getPulsarClient().newProducer().producerName(producerName).topic(topicUri) +final ProducerBuilder producerBuilder = pulsarEndpoint.getPulsarClient().newProducer().topic(topicUri) .sendTimeout(configuration.getSendTimeoutMs(), TimeUnit.MILLISECONDS).blockIfQueueFull(configuration.isBlockIfQueueFull()) .maxPendingMessages(configuration.getMaxPendingMessages()).maxPendingMessagesAcrossPartitions(configuration.getMaxPendingMessagesAcrossPartitions()) .batchingMaxPublishDelay(configuration.getBatchingMaxPublishDelayMicros(), TimeUnit.MICROSECONDS).batchingMaxMessages(configuration.getMaxPendingMessages()) @@ -70,6 +67,9 @@ public class PulsarProducer extends DefaultProducer { } else { producerBuilder.messageRoutingMode(configuration.getMessageRoutingMode()); } +if (producerName != null) { +producerBuilder.producerName(producerName); +} producer = producerBuilder.create(); } } diff --git a/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/configuration/PulsarConfiguration.java b/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/configuration/PulsarConfiguration.java index 50b9778..96b5b4f 100644 --- a/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/configuration/PulsarConfiguration.java +++ b/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/configuration/PulsarConfiguration.java @@ -41,8 +41,8 @@ public class PulsarConfiguration { private int consumerQueueSize = 10; @UriParam(label = "consumer", defaultValue = "sole-consumer") private String consumerName = "sole-consumer"; -@UriParam(label = "producer", defaultValue = "default-producer") -private String producerName = "default-producer"; +@UriParam(label = "producer") +p
[camel] 03/04: Update javadoc, generate adoc and PulsarEndpointBuilderFactory
This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git commit 8e2025e7aaada21086460237fda34b4b2257a86c Author: William Thompson AuthorDate: Thu Oct 10 14:24:57 2019 -0400 Update javadoc, generate adoc and PulsarEndpointBuilderFactory --- components/camel-pulsar/src/main/docs/pulsar-component.adoc| 2 +- .../camel/component/pulsar/configuration/PulsarConfiguration.java | 2 +- .../camel/builder/endpoint/dsl/PulsarEndpointBuilderFactory.java | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/components/camel-pulsar/src/main/docs/pulsar-component.adoc b/components/camel-pulsar/src/main/docs/pulsar-component.adoc index 6044f24..d2eb07a 100644 --- a/components/camel-pulsar/src/main/docs/pulsar-component.adoc +++ b/components/camel-pulsar/src/main/docs/pulsar-component.adoc @@ -98,7 +98,7 @@ with the following path and query parameters: | *maxPendingMessagesAcross Partitions* (producer) | Set the number of max pending messages across all the partitions. Default is 5. | 5 | int | *messageRouter* (producer) | Set a custom Message Router. | | MessageRouter | *messageRoutingMode* (producer) | Set the message routing mode for the producer. | RoundRobinPartition | MessageRoutingMode -| *producerName* (producer) | Name of the producer, if unset lets Pulsar select a unique identifier | | String +| *producerName* (producer) | Name of the producer. If unset, lets Pulsar select a unique identifier. | | String | *sendTimeoutMs* (producer) | Send timeout in milliseconds. Defaults to 30,000ms (30 seconds) | 3 | int | *basicPropertyBinding* (advanced) | Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities | false | boolean | *synchronous* (advanced) | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). | false | boolean diff --git a/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/configuration/PulsarConfiguration.java b/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/configuration/PulsarConfiguration.java index e8098be..d6bdcb8 100644 --- a/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/configuration/PulsarConfiguration.java +++ b/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/configuration/PulsarConfiguration.java @@ -136,7 +136,7 @@ public class PulsarConfiguration { } /** - * Name of the producer + * Name of the producer. If unset, lets Pulsar select a unique identifier. */ public void setProducerName(String producerName) { this.producerName = producerName; diff --git a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/PulsarEndpointBuilderFactory.java b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/PulsarEndpointBuilderFactory.java index ace4f65..e5f4f00 100644 --- a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/PulsarEndpointBuilderFactory.java +++ b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/PulsarEndpointBuilderFactory.java @@ -717,7 +717,8 @@ public interface PulsarEndpointBuilderFactory { return this; } /** - * Name of the producer. + * Name of the producer. If unset, lets Pulsar select a unique + * identifier. * * The option is a: java.lang.String type. *
[GitHub] [camel-quarkus] jamesnetherton commented on issue #247: CamelContext.getVersion() always returns an empty string
jamesnetherton commented on issue #247: CamelContext.getVersion() always returns an empty string URL: https://github.com/apache/camel-quarkus/issues/247#issuecomment-541033426 > The resource should be already included, at least according to the code Yep - but it depends on camel-core being on the classpath, and I don't think that's the case for most (maybe all) of our extensions. `AbstractCamelContext` is in camel-base. So maybe we just update [this](https://github.com/apache/camel/blob/master/core/camel-base/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java#L2194) path to point to `/META-INF/maven/org.apache.camel/camel-base/pom.properties` and afterwards update `SubstrateResourceBuildItem` accordingly. This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] lburgazzoli commented on issue #247: CamelContext.getVersion() always returns an empty string
lburgazzoli commented on issue #247: CamelContext.getVersion() always returns an empty string URL: https://github.com/apache/camel-quarkus/issues/247#issuecomment-541035400 Ah, yes, we have changed a number of things in core/* so that could be a leftover :) This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] asf-ci commented on issue #258: #257 The cp -R command on Mac OS X behaves differently
asf-ci commented on issue #258: #257 The cp -R command on Mac OS X behaves differently URL: https://github.com/apache/camel-quarkus/pull/258#issuecomment-541037805 Refer to this link for build results (access rights to CI server needed): https://builds.apache.org/job/camel-quarkus-pr/242/Build result: FAILURE[...truncated 535.71 KB...]Caused by: hudson.remoting.Channel$OrderlyShutdown: Command Close created at at hudson.remoting.Channel$CloseCommand.execute(Channel.java:1273) at hudson.remoting.Channel$1.handle(Channel.java:565) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:85)Caused by: Command Close created at at hudson.remoting.Command.(Command.java:68) at hudson.remoting.Channel$CloseCommand.(Channel.java:1267) at hudson.remoting.Channel$CloseCommand.(Channel.java:1265) at hudson.remoting.Channel.close(Channel.java:1438) at hudson.remoting.Channel.close(Channel.java:1405) at hudson.remoting.Channel$CloseCommand.execute(Channel.java:1272) ... 2 moreERROR: H48 is offline; cannot locate JDK 1.8 (latest)ERROR: H48 is offline; cannot locate Maven 3.6.0ERROR: H48 is offline; cannot locate JDK 1.8 (latest)ERROR: H48 is offline; cannot locate Maven 3.6.0Adding one-line test results to commit status...ERROR: H48 is offline; cannot locate JDK 1.8 (latest)ERROR: H48 is offline; cannot locate Maven 3.6.0ERROR: H48 is offline; cannot locate JDK 1.8 (latest)ERROR: H48 is offline; cannot locate Maven 3.6.0Setting status of 97089298431fa2beee0189fbe745ef2dfed3d962 to FAILURE with url https://builds.apache.org/job/camel-quarkus-pr/242/ and message: 'FAILURE 20 tests run, 0 skipped, 0 failed.'Using context: default This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[camel] branch master updated (1da157e -> 6bd32aa)
This is an automated email from the ASF dual-hosted git repository. acosentino pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/camel.git. from 1da157e Merge branch 'master' of github.com:apache/camel add 35f4038 Camel-AWS SWF: Fixed link name in docs add 6bd32aa Regen docs No new revisions were added by this update. Summary of changes: .../src/main/docs/aws-swf-component.adoc | 2 +- .../modules/ROOT/pages/aws-swf-component.adoc | 2 +- .../ROOT/pages/microprofile-health-component.adoc | 8 ++- .../modules/ROOT/pages/paho-component.adoc | 67 +- .../modules/ROOT/pages/pulsar-component.adoc | 2 +- .../modules/ROOT/pages/undertow-component.adoc | 6 +- 6 files changed, 64 insertions(+), 23 deletions(-)
[GitHub] [camel-quarkus] coolbeevip commented on issue #260: camel-quarkus parent pom when already have a parent pom
coolbeevip commented on issue #260: camel-quarkus parent pom when already have a parent pom URL: https://github.com/apache/camel-quarkus/issues/260#issuecomment-541041057 > Thanks for the report. > > I see 11 occurrences of `mvn clean package` in your log. Could you please remove 10 and leave the most significant one so that I do not need to go through so many lines? -_-# sorry, I just clean log This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[camel] branch master updated: CAMEL-14057: Update resource path for camel context version retrieval
This is an automated email from the ASF dual-hosted git repository. jamesnetherton pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git The following commit(s) were added to refs/heads/master by this push: new 1060c10 CAMEL-14057: Update resource path for camel context version retrieval 1060c10 is described below commit 1060c10ecdcc343477b796d44e3fd0c53d704842 Author: James Netherton AuthorDate: Fri Oct 11 13:22:48 2019 +0100 CAMEL-14057: Update resource path for camel context version retrieval --- .../main/java/org/apache/camel/impl/engine/AbstractCamelContext.java| 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/camel-base/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java b/core/camel-base/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java index 7d81b11..f9813e4 100644 --- a/core/camel-base/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java +++ b/core/camel-base/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java @@ -2191,7 +2191,7 @@ public abstract class AbstractCamelContext extends ServiceSupport implements Ext // try to load from maven properties first try { Properties p = new Properties(); -is = getClass().getResourceAsStream("/META-INF/maven/org.apache.camel/camel-core/pom.properties"); +is = getClass().getResourceAsStream("/META-INF/maven/org.apache.camel/camel-base/pom.properties"); if (is != null) { p.load(is); version = p.getProperty("version", "");
[camel] branch master updated: CAMEL-14058 NPE for one-way requests with cookie handling
This is an automated email from the ASF dual-hosted git repository. siano pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git The following commit(s) were added to refs/heads/master by this push: new ee42ef0 CAMEL-14058 NPE for one-way requests with cookie handling ee42ef0 is described below commit ee42ef073588dddfc9a72463a71f5aae31e79674 Author: Stephan Siano AuthorDate: Fri Oct 11 14:27:12 2019 +0200 CAMEL-14058 NPE for one-way requests with cookie handling --- .../main/java/org/apache/camel/component/cxf/CxfClientCallback.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfClientCallback.java b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfClientCallback.java index 742e16f..d8d211a 100644 --- a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfClientCallback.java +++ b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfClientCallback.java @@ -58,7 +58,7 @@ public class CxfClientCallback extends ClientCallback { super.handleResponse(ctx, res); } finally { // add cookies to the cookie store -if (endpoint.getCookieHandler() != null) { +if (endpoint.getCookieHandler() != null && cxfExchange.getInMessage() != null) { try { Map> cxfHeaders = CastUtils.cast((Map)cxfExchange.getInMessage().get(Message.PROTOCOL_HEADERS)); endpoint.getCookieHandler().storeCookies(camelExchange, endpoint.getRequestUri(camelExchange), cxfHeaders); @@ -100,7 +100,7 @@ public class CxfClientCallback extends ClientCallback { } } finally { // add cookies to the cookie store -if (endpoint.getCookieHandler() != null) { +if (endpoint.getCookieHandler() != null && cxfExchange.getInMessage() != null) { try { Map> cxfHeaders = CastUtils.cast((Map)cxfExchange.getInMessage().get(Message.PROTOCOL_HEADERS)); endpoint.getCookieHandler().storeCookies(camelExchange, endpoint.getRequestUri(camelExchange), cxfHeaders);
[camel] branch camel-2.x updated: CAMEL-14058 NPE for one-way requests with cookie handling
This is an automated email from the ASF dual-hosted git repository. siano pushed a commit to branch camel-2.x in repository https://gitbox.apache.org/repos/asf/camel.git The following commit(s) were added to refs/heads/camel-2.x by this push: new 77c52af CAMEL-14058 NPE for one-way requests with cookie handling 77c52af is described below commit 77c52afefee687313f02a4bbb2dae0169a6278ab Author: Stephan Siano AuthorDate: Fri Oct 11 14:27:12 2019 +0200 CAMEL-14058 NPE for one-way requests with cookie handling --- .../main/java/org/apache/camel/component/cxf/CxfClientCallback.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfClientCallback.java b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfClientCallback.java index b2810c5..66e549b 100644 --- a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfClientCallback.java +++ b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfClientCallback.java @@ -57,7 +57,7 @@ public class CxfClientCallback extends ClientCallback { super.handleResponse(ctx, res); } finally { // add cookies to the cookie store -if (endpoint.getCookieHandler() != null) { +if (endpoint.getCookieHandler() != null && cxfExchange.getInMessage() != null) { try { Map> cxfHeaders = CastUtils.cast((Map)cxfExchange.getInMessage().get(Message.PROTOCOL_HEADERS)); endpoint.getCookieHandler().storeCookies(camelExchange, endpoint.getRequestUri(camelExchange), cxfHeaders); @@ -98,7 +98,7 @@ public class CxfClientCallback extends ClientCallback { } } finally { // add cookies to the cookie store -if (endpoint.getCookieHandler() != null) { +if (endpoint.getCookieHandler() != null && cxfExchange.getInMessage() != null) { try { Map> cxfHeaders = CastUtils.cast((Map)cxfExchange.getInMessage().get(Message.PROTOCOL_HEADERS)); endpoint.getCookieHandler().storeCookies(camelExchange, endpoint.getRequestUri(camelExchange), cxfHeaders);
[camel] branch camel-2.24.x updated: CAMEL-14058 NPE for one-way requests with cookie handling
This is an automated email from the ASF dual-hosted git repository. siano pushed a commit to branch camel-2.24.x in repository https://gitbox.apache.org/repos/asf/camel.git The following commit(s) were added to refs/heads/camel-2.24.x by this push: new a1ba128 CAMEL-14058 NPE for one-way requests with cookie handling a1ba128 is described below commit a1ba1280d6dc044708caf952d0874f976f74 Author: Stephan Siano AuthorDate: Fri Oct 11 14:27:12 2019 +0200 CAMEL-14058 NPE for one-way requests with cookie handling --- .../main/java/org/apache/camel/component/cxf/CxfClientCallback.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfClientCallback.java b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfClientCallback.java index b2810c5..66e549b 100644 --- a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfClientCallback.java +++ b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfClientCallback.java @@ -57,7 +57,7 @@ public class CxfClientCallback extends ClientCallback { super.handleResponse(ctx, res); } finally { // add cookies to the cookie store -if (endpoint.getCookieHandler() != null) { +if (endpoint.getCookieHandler() != null && cxfExchange.getInMessage() != null) { try { Map> cxfHeaders = CastUtils.cast((Map)cxfExchange.getInMessage().get(Message.PROTOCOL_HEADERS)); endpoint.getCookieHandler().storeCookies(camelExchange, endpoint.getRequestUri(camelExchange), cxfHeaders); @@ -98,7 +98,7 @@ public class CxfClientCallback extends ClientCallback { } } finally { // add cookies to the cookie store -if (endpoint.getCookieHandler() != null) { +if (endpoint.getCookieHandler() != null && cxfExchange.getInMessage() != null) { try { Map> cxfHeaders = CastUtils.cast((Map)cxfExchange.getInMessage().get(Message.PROTOCOL_HEADERS)); endpoint.getCookieHandler().storeCookies(camelExchange, endpoint.getRequestUri(camelExchange), cxfHeaders);
[camel] branch master updated (ee42ef0 -> 35184b6)
This is an automated email from the ASF dual-hosted git repository. acosentino pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/camel.git. from ee42ef0 CAMEL-14058 NPE for one-way requests with cookie handling add 35184b6 Regen again No new revisions were added by this update. Summary of changes: components/camel-undertow/src/main/docs/undertow-component.adoc | 3 ++- components/readme.adoc | 2 +- docs/components/modules/ROOT/pages/undertow-component.adoc | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-)
[GitHub] [camel-k] nicolaferraro opened a new issue #1008: Allow explicit usage of apiVersion and kind in knative URIs
nicolaferraro opened a new issue #1008: Allow explicit usage of apiVersion and kind in knative URIs URL: https://github.com/apache/camel-k/issues/1008 Currently they are only autodetected from a predefined list, but next release of camel-k-runtime will allow explicit reference of source/target. This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] ppalaga opened a new pull request #261: Fix #259 The User guide should refer to the rest-json example
ppalaga opened a new pull request #261: Fix #259 The User guide should refer to the rest-json example URL: https://github.com/apache/camel-quarkus/pull/261 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] asf-ci commented on issue #261: Fix #259 The User guide should refer to the rest-json example
asf-ci commented on issue #261: Fix #259 The User guide should refer to the rest-json example URL: https://github.com/apache/camel-quarkus/pull/261#issuecomment-541070022 Refer to this link for build results (access rights to CI server needed): https://builds.apache.org/job/camel-quarkus-pr/244/ This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] ppalaga opened a new issue #262: Use bomEntryVersion of CreateExtensionMojo to avoid ${project.version} usage in BOMs
ppalaga opened a new issue #262: Use bomEntryVersion of CreateExtensionMojo to avoid ${project.version} usage in BOMs URL: https://github.com/apache/camel-quarkus/issues/262 Around here https://github.com/apache/camel-quarkus/blob/master/extensions/pom.xml#L85 after the upgrade to Quarkus 0.25.0 Plz assign to me This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] asf-ci commented on issue #261: Fix #259 The User guide should refer to the rest-json example
asf-ci commented on issue #261: Fix #259 The User guide should refer to the rest-json example URL: https://github.com/apache/camel-quarkus/pull/261#issuecomment-541072329 Refer to this link for build results (access rights to CI server needed): https://builds.apache.org/job/camel-quarkus-pr/245/ This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-k] lburgazzoli closed issue #1005: Cannot use knative-source-yaml loader
lburgazzoli closed issue #1005: Cannot use knative-source-yaml loader URL: https://github.com/apache/camel-k/issues/1005 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[camel-k] 02/02: fix #1005: fix findings
This is an automated email from the ASF dual-hosted git repository. lburgazzoli pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-k.git commit 465444d0234bd72ce9cd8a06e1571a5d236bd594 Author: nferraro AuthorDate: Fri Oct 11 15:10:17 2019 +0200 fix #1005: fix findings --- pkg/apis/camel/v1alpha1/integration_types.go | 2 +- pkg/trait/dependencies_test.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/apis/camel/v1alpha1/integration_types.go b/pkg/apis/camel/v1alpha1/integration_types.go index 3d8d488..3f3d775 100644 --- a/pkg/apis/camel/v1alpha1/integration_types.go +++ b/pkg/apis/camel/v1alpha1/integration_types.go @@ -109,7 +109,7 @@ type SourceSpec struct { Language Language `json:"language,omitempty"` // Loader is an optional id of the org.apache.camel.k.RoutesLoader that will // interpret this source at runtime - Loader string `json:"loader,omitempty"` + Loader string `json:"loader,omitempty"` } // Language -- diff --git a/pkg/trait/dependencies_test.go b/pkg/trait/dependencies_test.go index d92866a..fed00c9 100644 --- a/pkg/trait/dependencies_test.go +++ b/pkg/trait/dependencies_test.go @@ -22,7 +22,6 @@ import ( "github.com/apache/camel-k/pkg/apis/camel/v1alpha1" "github.com/apache/camel-k/pkg/util/test" - "github.com/stretchr/testify/assert" ) @@ -204,7 +203,7 @@ func TestIntegrationCustomLoader(t *testing.T) { Content: "- from:\n uri: direct:foo\nsteps:\n- to: log:bar", }, Language: v1alpha1.LanguageYaml, - Loader: "knative-source-yaml", + Loader: "knative-source-yaml", }, }, },
[camel-k] branch master updated (c8e89bd -> 465444d)
This is an automated email from the ASF dual-hosted git repository. lburgazzoli pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/camel-k.git. from c8e89bd fix(OLM): fix 'replaces' field from 1.0.0-M2 CSV new d5b0048 fix #1005: allow to customize loader and add default dependencies for knative-source loader new 465444d fix #1005: fix findings The 2 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: pkg/apis/camel/v1alpha1/integration_types.go | 3 ++ pkg/trait/dependencies.go| 6 pkg/trait/dependencies_test.go | 45 +++- pkg/trait/trait_types.go | 4 +++ 4 files changed, 57 insertions(+), 1 deletion(-)
[camel-k] 01/02: fix #1005: allow to customize loader and add default dependencies for knative-source loader
This is an automated email from the ASF dual-hosted git repository. lburgazzoli pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-k.git commit d5b004821ad0ac37f3dc0ddaee86447feae16dea Author: nferraro AuthorDate: Fri Oct 11 13:28:55 2019 +0200 fix #1005: allow to customize loader and add default dependencies for knative-source loader --- pkg/apis/camel/v1alpha1/integration_types.go | 3 ++ pkg/trait/dependencies.go| 6 pkg/trait/dependencies_test.go | 44 pkg/trait/trait_types.go | 4 +++ 4 files changed, 57 insertions(+) diff --git a/pkg/apis/camel/v1alpha1/integration_types.go b/pkg/apis/camel/v1alpha1/integration_types.go index 2b0ba8e..3d8d488 100644 --- a/pkg/apis/camel/v1alpha1/integration_types.go +++ b/pkg/apis/camel/v1alpha1/integration_types.go @@ -107,6 +107,9 @@ const ( type SourceSpec struct { DataSpec Language Language `json:"language,omitempty"` + // Loader is an optional id of the org.apache.camel.k.RoutesLoader that will + // interpret this source at runtime + Loader string `json:"loader,omitempty"` } // Language -- diff --git a/pkg/trait/dependencies.go b/pkg/trait/dependencies.go index 7a2b94b..9659577 100644 --- a/pkg/trait/dependencies.go +++ b/pkg/trait/dependencies.go @@ -19,6 +19,7 @@ package trait import ( "sort" + "strings" "github.com/apache/camel-k/pkg/apis/camel/v1alpha1" "github.com/apache/camel-k/pkg/metadata" @@ -70,6 +71,11 @@ func (t *dependenciesTrait) Apply(e *Environment) error { util.StringSliceUniqueAdd(&dependencies, "mvn:org.apache.camel.k/camel-k-loader-java") } + if strings.HasPrefix(s.Loader, "knative-source") { + util.StringSliceUniqueAdd(&dependencies, "mvn:org.apache.camel.k/camel-k-loader-knative") + util.StringSliceUniqueAdd(&dependencies, "mvn:org.apache.camel.k/camel-k-runtime-knative") + } + // main required by default util.StringSliceUniqueAdd(&dependencies, "mvn:org.apache.camel.k/camel-k-runtime-main") diff --git a/pkg/trait/dependencies_test.go b/pkg/trait/dependencies_test.go index fd9ae24..d92866a 100644 --- a/pkg/trait/dependencies_test.go +++ b/pkg/trait/dependencies_test.go @@ -188,3 +188,47 @@ func TestIntegrationAutoGeneratedDeps(t *testing.T) { e.Integration.Status.Dependencies, ) } + +func TestIntegrationCustomLoader(t *testing.T) { + catalog, err := test.DefaultCatalog() + assert.Nil(t, err) + + e := &Environment{ + CamelCatalog: catalog, + Integration: &v1alpha1.Integration{ + Spec: v1alpha1.IntegrationSpec{ + Sources: []v1alpha1.SourceSpec{ + { + DataSpec: v1alpha1.DataSpec{ + Name:"flow.yaml", + Content: "- from:\n uri: direct:foo\nsteps:\n- to: log:bar", + }, + Language: v1alpha1.LanguageYaml, + Loader: "knative-source-yaml", + }, + }, + }, + Status: v1alpha1.IntegrationStatus{ + Phase: v1alpha1.IntegrationPhaseInitialization, + }, + }, + } + + trait := newDependenciesTrait() + enabled, err := trait.Configure(e) + assert.Nil(t, err) + assert.True(t, enabled) + + err = trait.Apply(e) + assert.Nil(t, err) + assert.ElementsMatch(t, + []string{ + "camel:direct", + "camel:log", + "mvn:org.apache.camel.k/camel-k-loader-knative", + "mvn:org.apache.camel.k/camel-k-loader-yaml", + "mvn:org.apache.camel.k/camel-k-runtime-knative", + "mvn:org.apache.camel.k/camel-k-runtime-main"}, + e.Integration.Status.Dependencies, + ) +} diff --git a/pkg/trait/trait_types.go b/pkg/trait/trait_types.go index fabf049..f1cb187 100644 --- a/pkg/trait/trait_types.go +++ b/pkg/trait/trait_types.go @@ -325,6 +325,7 @@ func (e *Environment) ComputeConfigMaps() []runtime.Object { }, Annotations: map[string]string{ "camel.apache.org/source.language": string(s.InferLanguage()), + "camel.apache.org/source.loader":
[GitHub] [camel-k] lburgazzoli merged pull request #1007: fix #1005: allow to customize loader and add default dependencies for…
lburgazzoli merged pull request #1007: fix #1005: allow to customize loader and add default dependencies for… URL: https://github.com/apache/camel-k/pull/1007 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] ppalaga commented on issue #258: #257 The cp -R command on Mac OS X behaves differently
ppalaga commented on issue #258: #257 The cp -R command on Mac OS X behaves differently URL: https://github.com/apache/camel-quarkus/pull/258#issuecomment-541081517 Superceded by https://github.com/apache/camel-quarkus/pull/261 Please close this one whoever can. This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] coolbeevip closed pull request #258: #257 The cp -R command on Mac OS X behaves differently
coolbeevip closed pull request #258: #257 The cp -R command on Mac OS X behaves differently URL: https://github.com/apache/camel-quarkus/pull/258 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] coolbeevip opened a new pull request #258: #257 The cp -R command on Mac OS X behaves differently
coolbeevip opened a new pull request #258: #257 The cp -R command on Mac OS X behaves differently URL: https://github.com/apache/camel-quarkus/pull/258 The way is compatible with Mac OS X and Linux / UNIX ``` cp -r camel-quarkus/integration-tests/servlet . ``` The following is the description of the -R parameter in the man pages for cp on Mac OS X: If source_file designates a directory, cp copies the directory and the entire subtree connected at that point. If the source_file ends in a /, the contents of the directory are copied rather than the directory itself. This option also causes symbolic links to be copied, rather than indirected through, and for cp to create special files rather than copying them as normal files. Created directories have the same mode as the corresponding source directory, unmodified by the process' umask. This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] coolbeevip closed pull request #258: #257 The cp -R command on Mac OS X behaves differently
coolbeevip closed pull request #258: #257 The cp -R command on Mac OS X behaves differently URL: https://github.com/apache/camel-quarkus/pull/258 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] ppalaga commented on issue #260: camel-quarkus parent pom when already have a parent pom
ppalaga commented on issue #260: camel-quarkus parent pom when already have a parent pom URL: https://github.com/apache/camel-quarkus/issues/260#issuecomment-541091773 I was able to reproduce the issue. The root cause is that you mix Camel Quarkus 0.2.0 with Quarkus 0.23.2. Camel Quarkus 0.2.0 is compatible only with Quarkus 0.22.0. So downgrading `quarkus.version` in your parent pom should solve the problem. This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] ppalaga commented on issue #183: Generate documentation to be included in quarkus
ppalaga commented on issue #183: Generate documentation to be included in quarkus URL: https://github.com/apache/camel-quarkus/issues/183#issuecomment-541093955 Plz. assign to me. This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-k] bfitzpat opened a new issue #1009: Provide a plain text file with the latest version of Camel K for easier automation of downloading via the tooling
bfitzpat opened a new issue #1009: Provide a plain text file with the latest version of Camel K for easier automation of downloading via the tooling URL: https://github.com/apache/camel-k/issues/1009 We have been working on setting up the VS Code extension to automatically download the Camel K CLI. For example, the Kubernetes extension provides this file: https://storage.googleapis.com/kubernetes-release/release/stable.txt. It simply provides the version number as a string (v1.16.1) that is then used in a generated URL - https://storage.googleapis.com/kubernetes-release/release/${version.result.trim()}/bin/${osString}/amd64/${binFile} It would be great if we could do the same thing for the Camel K CLI - https://github.com/apache/camel-k/releases/download/${version}/camel-k-client-${version}-${platformString}-64bit.tar.gz Maybe a simple text file in the github repo with "1.0.0-M2" in it? This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] coolbeevip closed issue #260: camel-quarkus parent pom when already have a parent pom
coolbeevip closed issue #260: camel-quarkus parent pom when already have a parent pom URL: https://github.com/apache/camel-quarkus/issues/260 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-k] lburgazzoli commented on issue #1009: Provide a plain text file with the latest version of Camel K for easier automation of downloading via the tooling
lburgazzoli commented on issue #1009: Provide a plain text file with the latest version of Camel K for easier automation of downloading via the tooling URL: https://github.com/apache/camel-k/issues/1009#issuecomment-541098417 You can eventually use github api like: curl -s https://api.github.com/repos/apache/camel-k/releases/latest Which gives you a json with information about the assets included in latest release. This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] coolbeevip closed issue #257: Shell scripts in the user guide documentation are not compatible with Mac OS X
coolbeevip closed issue #257: Shell scripts in the user guide documentation are not compatible with Mac OS X URL: https://github.com/apache/camel-quarkus/issues/257 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-k] bfitzpat commented on issue #1009: Provide a plain text file with the latest version of Camel K for easier automation of downloading via the tooling
bfitzpat commented on issue #1009: Provide a plain text file with the latest version of Camel K for easier automation of downloading via the tooling URL: https://github.com/apache/camel-k/issues/1009#issuecomment-541099777 > Which gives you a json with information about the assets included in latest release. That spits out a ton of detail in that json file, but we could certainly go that route. I was just looking for something simple. :) This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-k] lburgazzoli commented on issue #1009: Provide a plain text file with the latest version of Camel K for easier automation of downloading via the tooling
lburgazzoli commented on issue #1009: Provide a plain text file with the latest version of Camel K for easier automation of downloading via the tooling URL: https://github.com/apache/camel-k/issues/1009#issuecomment-541100445 I usually do something like that do download releases: ``` curl -s https://api.github.com/repos/${REPO_OWNER}/${REPO_NAME}/releases/latest \ | jq --raw-output ".assets[] | select(.name | startswith(\"${BINARY_NAME}\")) \ | .browser_download_url" ``` This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-k] bfitzpat commented on issue #1009: Provide a plain text file with the latest version of Camel K for easier automation of downloading via the tooling
bfitzpat commented on issue #1009: Provide a plain text file with the latest version of Camel K for easier automation of downloading via the tooling URL: https://github.com/apache/camel-k/issues/1009#issuecomment-541102858 I don't know that I can rely on curl for Windows machines, which is a problem. This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] asf-ci commented on issue #261: Fix #259 The User guide should refer to the rest-json example
asf-ci commented on issue #261: Fix #259 The User guide should refer to the rest-json example URL: https://github.com/apache/camel-quarkus/pull/261#issuecomment-541106130 Refer to this link for build results (access rights to CI server needed): https://builds.apache.org/job/camel-quarkus-pr/246/ This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-k] lburgazzoli commented on issue #1009: Provide a plain text file with the latest version of Camel K for easier automation of downloading via the tooling
lburgazzoli commented on issue #1009: Provide a plain text file with the latest version of Camel K for easier automation of downloading via the tooling URL: https://github.com/apache/camel-k/issues/1009#issuecomment-541110472 I meant that you can probably use a json path like the one I shown from your extension This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-k-runtime] lburgazzoli closed pull request #152: Knative related improvements
lburgazzoli closed pull request #152: Knative related improvements URL: https://github.com/apache/camel-k-runtime/pull/152 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-k-runtime] lburgazzoli commented on issue #152: Knative related improvements
lburgazzoli commented on issue #152: Knative related improvements URL: https://github.com/apache/camel-k-runtime/pull/152#issuecomment-541110586 reworking This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] ppalaga commented on issue #183: Generate documentation to be included in quarkus
ppalaga commented on issue #183: Generate documentation to be included in quarkus URL: https://github.com/apache/camel-quarkus/issues/183#issuecomment-541114876 https://github.com/quarkusio/quarkus/pull/4521 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-k] staylorx commented on issue #971: Permission Denied while creating a temporary dir on AWS EKS
staylorx commented on issue #971: Permission Denied while creating a temporary dir on AWS EKS URL: https://github.com/apache/camel-k/issues/971#issuecomment-541121277 This seems to have been fixed in M2. Now it's all just kaniko and hardcoded Google, but I see that issue #613 referenced for the 1.0.0 milestone. Closing. This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-k] staylorx closed issue #971: Permission Denied while creating a temporary dir on AWS EKS
staylorx closed issue #971: Permission Denied while creating a temporary dir on AWS EKS URL: https://github.com/apache/camel-k/issues/971 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] asf-ci commented on issue #254: Fix #251 Unrecognized configuration key
asf-ci commented on issue #254: Fix #251 Unrecognized configuration key URL: https://github.com/apache/camel-quarkus/pull/254#issuecomment-541122148 Refer to this link for build results (access rights to CI server needed): https://builds.apache.org/job/camel-quarkus-pr/247/ This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] asf-ci commented on issue #249: Make xml and jaxb disabled by default and opt-in when depending on ca…
asf-ci commented on issue #249: Make xml and jaxb disabled by default and opt-in when depending on ca… URL: https://github.com/apache/camel-quarkus/pull/249#issuecomment-541122259 Refer to this link for build results (access rights to CI server needed): https://builds.apache.org/job/camel-quarkus-pr/249/ This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] ppalaga commented on issue #183: Generate documentation to be included in quarkus
ppalaga commented on issue #183: Generate documentation to be included in quarkus URL: https://github.com/apache/camel-quarkus/issues/183#issuecomment-541124384 https://github.com/quarkusio/quarkusio.github.io/pull/312 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-k] bfitzpat commented on issue #1009: Provide a plain text file with the latest version of Camel K for easier automation of downloading via the tooling
bfitzpat commented on issue #1009: Provide a plain text file with the latest version of Camel K for easier automation of downloading via the tooling URL: https://github.com/apache/camel-k/issues/1009#issuecomment-541125957 That works. :) `async function getLatestCamelKVersion(): Promise> { const latestURL = 'https://api.github.com/repos/apache/camel-k/releases/latest'; const downloadResult = await downloader.toTempFile(latestURL); if (failed(downloadResult)) { return { succeeded: false, error: [`Failed to establish kubectl stable version: ${downloadResult.error[0]}`] }; } const rawtext = fs.readFileSync(downloadResult.result, 'utf-8'); let latestJSON = JSON.parse(rawtext); let tagName = latestJSON.tag_name; if (tagName) { return { succeeded: true, result: tagName }; } return { succeeded: false, error: [`Failed to retrieve latest Apache Camel K version tag from : ${latestURL}`] }; }` ``` This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-k] bfitzpat edited a comment on issue #1009: Provide a plain text file with the latest version of Camel K for easier automation of downloading via the tooling
bfitzpat edited a comment on issue #1009: Provide a plain text file with the latest version of Camel K for easier automation of downloading via the tooling URL: https://github.com/apache/camel-k/issues/1009#issuecomment-541125957 That works. :) ``` async function getLatestCamelKVersion(): Promise> { const latestURL = 'https://api.github.com/repos/apache/camel-k/releases/latest'; const downloadResult = await downloader.toTempFile(latestURL); if (failed(downloadResult)) { return { succeeded: false, error: [`Failed to establish kubectl stable version: ${downloadResult.error[0]}`] }; } const rawtext = fs.readFileSync(downloadResult.result, 'utf-8'); let latestJSON = JSON.parse(rawtext); let tagName = latestJSON.tag_name; if (tagName) { return { succeeded: true, result: tagName }; } return { succeeded: false, error: [`Failed to retrieve latest Apache Camel K version tag from : ${latestURL}`] }; } ``` This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-k] bfitzpat closed issue #1009: Provide a plain text file with the latest version of Camel K for easier automation of downloading via the tooling
bfitzpat closed issue #1009: Provide a plain text file with the latest version of Camel K for easier automation of downloading via the tooling URL: https://github.com/apache/camel-k/issues/1009 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-k] bfitzpat commented on issue #1009: Provide a plain text file with the latest version of Camel K for easier automation of downloading via the tooling
bfitzpat commented on issue #1009: Provide a plain text file with the latest version of Camel K for easier automation of downloading via the tooling URL: https://github.com/apache/camel-k/issues/1009#issuecomment-541126252 Thanks Luca! Considering this one resolved. :) This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] asf-ci commented on issue #254: Fix #251 Unrecognized configuration key
asf-ci commented on issue #254: Fix #251 Unrecognized configuration key URL: https://github.com/apache/camel-quarkus/pull/254#issuecomment-541136142 Refer to this link for build results (access rights to CI server needed): https://builds.apache.org/job/camel-quarkus-pr/248/ This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] asf-ci commented on issue #249: Make xml and jaxb disabled by default and opt-in when depending on ca…
asf-ci commented on issue #249: Make xml and jaxb disabled by default and opt-in when depending on ca… URL: https://github.com/apache/camel-quarkus/pull/249#issuecomment-541136829 Refer to this link for build results (access rights to CI server needed): https://builds.apache.org/job/camel-quarkus-pr/250/ This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] coolbeevip opened a new issue #263: example rest-json doesn't work in development mode
coolbeevip opened a new issue #263: example rest-json doesn't work in development mode URL: https://github.com/apache/camel-quarkus/issues/263 I'm run `mvn clean compile quarkus:dev -DnoDeps` getting the following error: ``` [INFO] Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] [INFO] -< org.my-org:my-app >-- [INFO] Building my-app 0.0.1-SNAPSHOT [INFO] [ jar ]- [INFO] [INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ my-app --- [INFO] Deleting /Users/zhanglei/github/servlet/target [INFO] [INFO] --- maven-enforcer-plugin:1.4.1:enforce (camel-quarkus-enforcer-rules) @ my-app --- [INFO] [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ my-app --- [INFO] [INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) @ my-app --- [INFO] [INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ my-app --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] Copying 3 resources [INFO] [INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ my-app --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 2 source files to /Users/zhanglei/github/servlet/target/classes [INFO] [INFO] --- quarkus-maven-plugin:0.22.0:dev (default-cli) @ my-app --- Listening for transport dt_socket at address: 5005 00:45:44,670 INFO [io.qua.dep.QuarkusAugmentor] Beginning quarkus augmentation 00:45:44,989 INFO [org.jbo.threads] JBoss Threads version 3.0.0.Beta5 00:45:45,466 INFO [io.qua.dep.QuarkusAugmentor] Quarkus augmentation completed in 796ms 00:45:45,490 ERROR [io.qua.dev.DevModeMain] Failed to start quarkus: java.lang.ExceptionInInitializerError at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at java.lang.Class.newInstance(Class.java:442) at io.quarkus.runner.RuntimeRunner.run(RuntimeRunner.java:126) at io.quarkus.dev.DevModeMain.doStart(DevModeMain.java:180) at io.quarkus.dev.DevModeMain.start(DevModeMain.java:94) at io.quarkus.dev.DevModeMain.main(DevModeMain.java:66) Caused by: java.lang.RuntimeException: Failed to start quarkus at io.quarkus.runner.ApplicationImpl1.(ApplicationImpl1.zig:325) ... 9 more Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: org.apache.camel.quarkus.component.servlet.CamelRoute at org.apache.camel.quarkus.core.runtime.CamelRecorder.addBuilder(CamelRecorder.java:75) at io.quarkus.deployment.steps.BuildProcessor$create7.deploy_0(BuildProcessor$create7.zig:106) at io.quarkus.deployment.steps.BuildProcessor$create7.deploy(BuildProcessor$create7.zig:36) at io.quarkus.runner.ApplicationImpl1.(ApplicationImpl1.zig:263) ... 9 more Caused by: java.lang.ClassNotFoundException: org.apache.camel.quarkus.component.servlet.CamelRoute at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at org.apache.camel.quarkus.core.runtime.CamelRecorder.addBuilder(CamelRecorder.java:73) ... 12 more 00:45:45,491 ERROR [io.qua.dev.DevModeMain] Failed to start Quarkus, attempting to start hot replacement endpoint to recover 00:45:45,507 INFO [org.xnio] XNIO version 3.7.2.Final 00:45:45,528 INFO [org.xni.nio] XNIO NIO Implementation Version 3.7.2.Final ``` This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[camel] branch master updated: CAMEL-14037: Polished
This is an automated email from the ASF dual-hosted git repository. aldettinger pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git The following commit(s) were added to refs/heads/master by this push: new 3af1119 CAMEL-14037: Polished 3af1119 is described below commit 3af11192c283848e96eea5828978c5baadd62247 Author: aldettinger AuthorDate: Fri Oct 11 19:24:21 2019 +0200 CAMEL-14037: Polished --- .../java/org/apache/camel/component/consul/ConsulCatalogTest.java | 6 +++--- .../org/apache/camel/component/consul/ConsulClientKeyValueTest.java | 2 +- .../org/apache/camel/component/consul/ConsulCoordinatesTest.java| 6 +++--- .../java/org/apache/camel/component/consul/ConsulEventTest.java | 2 +- .../org/apache/camel/component/consul/ConsulEventWatchTest.java | 2 +- .../java/org/apache/camel/component/consul/ConsulHealthTest.java| 4 ++-- .../java/org/apache/camel/component/consul/ConsulKeyValueTest.java | 2 +- .../org/apache/camel/component/consul/ConsulKeyValueWatchTest.java | 2 +- .../java/org/apache/camel/component/consul/ConsulSessionTest.java | 4 ++-- .../component/consul/cloud/ConsulDefaultServiceCallRouteTest.java | 2 +- .../component/consul/cloud/ConsulRibbonServiceCallRouteTest.java| 2 +- .../consul/cloud/ConsulServiceCallWithRegistrationTest.java | 4 ++-- .../ConsulServiceRegistrationWithRoutePolicyAndMetadataTest.java| 2 +- .../cloud/ConsulServiceRegistrationWithRoutePolicyFactoryTest.java | 4 ++-- .../consul/cloud/ConsulServiceRegistrationWithRoutePolicyTest.java | 4 ++-- .../cloud/ConsulServiceRegistrationWithServiceComponentTest.java| 4 ++-- .../camel/component/consul/cloud/ConsulServiceRegistryTest.java | 2 +- .../consul/cloud/SpringConsulDefaultServiceCallRouteTest.java | 2 +- .../consul/cloud/SpringConsulExpressionServiceCallRouteTest.java| 2 +- .../consul/cloud/SpringConsulRibbonServiceCallRouteTest.java| 2 +- .../consul/cluster/ConsulClusteredRoutePolicyFactoryTest.java | 2 +- .../src/main/docs/testcontainers-junit5.adoc| 2 +- .../test/testcontainers/junit5/ContainerAwareTestSupportIT.java | 2 +- 23 files changed, 33 insertions(+), 33 deletions(-) diff --git a/components/camel-consul/src/test/java/org/apache/camel/component/consul/ConsulCatalogTest.java b/components/camel-consul/src/test/java/org/apache/camel/component/consul/ConsulCatalogTest.java index 097daec..f6e8089 100644 --- a/components/camel-consul/src/test/java/org/apache/camel/component/consul/ConsulCatalogTest.java +++ b/components/camel-consul/src/test/java/org/apache/camel/component/consul/ConsulCatalogTest.java @@ -27,7 +27,7 @@ import org.junit.jupiter.api.Test; public class ConsulCatalogTest extends ConsulTestSupport { @Test -public void testListDatacenters() throws Exception { +public void testListDatacenters() { List ref = getConsul().catalogClient().getDatacenters(); List res = fluentTemplate() .withHeader(ConsulConstants.CONSUL_ACTION, ConsulCatalogActions.LIST_DATACENTERS) @@ -40,7 +40,7 @@ public class ConsulCatalogTest extends ConsulTestSupport { } @Test -public void testListNodes() throws Exception { +public void testListNodes() { List ref = getConsul().catalogClient().getNodes().getResponse(); List res = fluentTemplate() .withHeader(ConsulConstants.CONSUL_ACTION, ConsulCatalogActions.LIST_NODES) @@ -53,7 +53,7 @@ public class ConsulCatalogTest extends ConsulTestSupport { } @Override -protected RouteBuilder createRouteBuilder() throws Exception { +protected RouteBuilder createRouteBuilder() { return new RouteBuilder() { public void configure() { from("direct:consul") diff --git a/components/camel-consul/src/test/java/org/apache/camel/component/consul/ConsulClientKeyValueTest.java b/components/camel-consul/src/test/java/org/apache/camel/component/consul/ConsulClientKeyValueTest.java index 749c22f..ad4cf3b 100644 --- a/components/camel-consul/src/test/java/org/apache/camel/component/consul/ConsulClientKeyValueTest.java +++ b/components/camel-consul/src/test/java/org/apache/camel/component/consul/ConsulClientKeyValueTest.java @@ -62,7 +62,7 @@ public class ConsulClientKeyValueTest extends ConsulTestSupport { } @Override -protected RouteBuilder createRouteBuilder() throws Exception { +protected RouteBuilder createRouteBuilder() { return new RouteBuilder() { public void configure() { diff --git a/components/camel-consul/src/test/java/org/apache/camel/component/consul/ConsulCoordinatesTest.java b/components/camel-consul/src/test/java/org/apache/camel/component/consul/ConsulCoordinatesTest.java index fc8a855..7bbb7a6 100644 --- a/components/camel-consul/src/test/java/org/apache/camel/component/consul/ConsulCoordinatesTest.java +++ b
[camel] branch master updated: CAMEL-14060: Deprecate camel-restlet
This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git The following commit(s) were added to refs/heads/master by this push: new 58b0ab9 CAMEL-14060: Deprecate camel-restlet 58b0ab9 is described below commit 58b0ab95f4d6890ff8e30eea617138e6953431ea Author: Claus Ibsen AuthorDate: Fri Oct 11 21:35:10 2019 +0200 CAMEL-14060: Deprecate camel-restlet --- components/camel-restlet/pom.xml | 2 +- components/camel-restlet/src/main/docs/restlet-component.adoc | 8 .../camel/builder/endpoint/dsl/RestletEndpointBuilderFactory.java | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/components/camel-restlet/pom.xml b/components/camel-restlet/pom.xml index 2bcadeb..ca09c8e 100644 --- a/components/camel-restlet/pom.xml +++ b/components/camel-restlet/pom.xml @@ -29,7 +29,7 @@ camel-restlet jar -Camel :: Restlet +Camel :: Restlet (deprecated) Camel REST (Restlet based) Component diff --git a/components/camel-restlet/src/main/docs/restlet-component.adoc b/components/camel-restlet/src/main/docs/restlet-component.adoc index 7f595c0..5a79f0a 100644 --- a/components/camel-restlet/src/main/docs/restlet-component.adoc +++ b/components/camel-restlet/src/main/docs/restlet-component.adoc @@ -1,7 +1,8 @@ -[[restlet-component]] -= Restlet Component += Restlet Component (deprecated) *Available as of Camel version 2.0* +*Available as of Camel version 2.0* + The Restlet component provides http://www.restlet.org[Restlet] based endpoints for consuming and producing RESTful @@ -430,5 +431,4 @@ well: Public online Restlet repository https://maven.restlet.com - - + \ No newline at end of file diff --git a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/RestletEndpointBuilderFactory.java b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/RestletEndpointBuilderFactory.java index b52ce78..61ce643 100644 --- a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/RestletEndpointBuilderFactory.java +++ b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/RestletEndpointBuilderFactory.java @@ -1057,6 +1057,7 @@ public interface RestletEndpointBuilderFactory { * Path parameter: uriPattern * The resource pattern such as /customer/{id} */ +@Deprecated default RestletEndpointBuilder restlet(String path) { class RestletEndpointBuilderImpl extends AbstractEndpointBuilder implements RestletEndpointBuilder, AdvancedRestletEndpointBuilder { public RestletEndpointBuilderImpl(String path) {
[camel] branch camel-2.x updated: CAMEL-14060: Deprecate camel-restlet
This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch camel-2.x in repository https://gitbox.apache.org/repos/asf/camel.git The following commit(s) were added to refs/heads/camel-2.x by this push: new afc00a1 CAMEL-14060: Deprecate camel-restlet afc00a1 is described below commit afc00a157c91e09e31cc65e2e6d8af3b75cfb7bd Author: Claus Ibsen AuthorDate: Fri Oct 11 21:38:12 2019 +0200 CAMEL-14060: Deprecate camel-restlet --- components/camel-restlet/pom.xml | 2 +- components/camel-restlet/src/main/docs/restlet-component.adoc | 7 --- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/components/camel-restlet/pom.xml b/components/camel-restlet/pom.xml index 2b5cd9d..baee433 100644 --- a/components/camel-restlet/pom.xml +++ b/components/camel-restlet/pom.xml @@ -28,7 +28,7 @@ camel-restlet jar - Camel :: Restlet + Camel :: Restlet (deprecated) Camel REST (Restlet based) Component diff --git a/components/camel-restlet/src/main/docs/restlet-component.adoc b/components/camel-restlet/src/main/docs/restlet-component.adoc index b6304dc..d978aa0 100644 --- a/components/camel-restlet/src/main/docs/restlet-component.adoc +++ b/components/camel-restlet/src/main/docs/restlet-component.adoc @@ -1,7 +1,8 @@ -[[restlet-component]] -= Restlet Component += Restlet Component (deprecated) *Available as of Camel version 2.0* +*Available as of Camel version 2.0* + The *Restlet* component provides http://www.restlet.org[Restlet] based @@ -438,4 +439,4 @@ well: Public online Restlet repository https://maven.restlet.com - + \ No newline at end of file
[camel-quarkus] branch master updated: Fix #259 The User guide should refer to the rest-json example (#261)
This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git The following commit(s) were added to refs/heads/master by this push: new a8bac24 Fix #259 The User guide should refer to the rest-json example (#261) a8bac24 is described below commit a8bac2456bf27b39091fe674655fe87e89444ae2 Author: Peter Palaga AuthorDate: Fri Oct 11 21:45:07 2019 +0200 Fix #259 The User guide should refer to the rest-json example (#261) * Do not use ${project.version} in the BOMs * Comment and simplify the rest-json example * Fix #259 The User guide should refer to the rest-json example rather than the servlet itest --- docs/modules/ROOT/pages/user-guide.adoc| 57 ++ examples/rest-json/pom.xml | 20 +--- .../src/main/java/org/acme/rest/json/Fruit.java| 5 +- .../src/main/java/org/acme/rest/json/Legume.java | 6 ++- .../src/main/java/org/acme/rest/json/Routes.java | 22 + .../java/org/acme/rest/json/LegumeResourceIT.java | 23 - .../org/acme/rest/json/LegumeResourceTest.java | 39 --- .../json/{FruitResourceIT.java => RestJsonIT.java} | 6 ++- .../{FruitResourceTest.java => RestJsonTest.java} | 26 -- extensions/pom.xml | 3 ++ poms/bom-deployment/pom.xml| 10 ++-- poms/bom/pom.xml | 12 ++--- 12 files changed, 91 insertions(+), 138 deletions(-) diff --git a/docs/modules/ROOT/pages/user-guide.adoc b/docs/modules/ROOT/pages/user-guide.adoc index e79c397..4806330 100644 --- a/docs/modules/ROOT/pages/user-guide.adoc +++ b/docs/modules/ROOT/pages/user-guide.adoc @@ -13,14 +13,11 @@ xref:list-of-camel-quarkus-extensions.adoc[complete list]. == Your first application -As long as we do not have self-contained examples, we can only offer some of the Camel Quarkus integration tests as a -replacement. Only a few manual steps are needed to turn e.g. the servlet integration test into a standalone application -that can further serve as a base for your real world project. +We recommend you to choose an example from our https://github.com/apache/camel-quarkus/tree/master/examples[source tree] +as a base for your real world project. === Prerequisites -To transform one of our integration tests to a standalone example, you need: - * A `git` client * An IDE * JDK 1.8+ with JAVA_HOME configured appropriately @@ -29,7 +26,7 @@ To transform one of our integration tests to a standalone example, you need: https://quarkus.io/guides/building-native-image-guide[Building a native executable] section of the Quarkus documentation. -=== Turn the servlet integration test into a standalone application +=== Step by step with the `rest-json` example 1. Clone Camel Quarkus and checkout the latest release tag + @@ -41,13 +38,13 @@ cd camel-quarkus git checkout $(git describe --abbrev=0) -2. Copy the servlet integration test out of the Camel Quarkus source tree. +2. Copy the `rest-json` example out of the Camel Quarkus source tree. + [source,shell] cd .. -cp -r camel-quarkus/integration-tests/servlet/ . -cd servlet +cp -r camel-quarkus/examples/rest-json . +cd rest-json 3. Open the `pom.xml` file in your IDE. @@ -87,24 +84,24 @@ The application has just two compile dependencies: org.apache.camel.quarkus -camel-quarkus-servlet +camel-quarkus-platform-http -org.apache.camel.quarkus -camel-quarkus-rest +org.apache.camel +camel-jackson -They are managed in `camel-quarkus-bom` that we use as the Maven parent. `camel-quarkus-bom` also manages plugins -necessary for a typical Camel Quarkus application. +They are managed in `camel-quarkus-bom` that we use as the Maven parent. `camel-quarkus-bom` and its ancestors also +manage plugins necessary for a typical Camel Quarkus application. In case you cannot use `camel-quarkus-bom` as a +parent of your application, make sure that you add those plugins manually. -There are only two classes in the application: `CamelRoute` defining the Camel routes and -`CustomServlet`. +There are only three classes in the application: `Routes` defining the Camel routes and a couple of entity classes +(`Fruit` and `Legume`). -`src/main/resources/application.properties` configure the application. E.g. the `CustomServlet` is set -there to serve the requests for the path `/my-named-folder/*`. +`src/main/resources/application.properties` configure the application. E.g. the `camel.context.name` is set there. -There are two test classes there: `CamelServletTest` is for the JVM mode while `CamelServletIT` is there for the native +There are two test classes there: `RestJsonTest` is for the JVM mode while `RestJsonIT` is there for the native mode. The JVM mode