[camel] branch master updated: Regen
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 9b21d36 Regen 9b21d36 is described below commit 9b21d3643631a6bb3cba4c6e284dd2d9b58bf0e8 Author: Claus Ibsen AuthorDate: Wed Oct 30 09:42:07 2019 +0100 Regen --- docs/components/modules/ROOT/nav.adoc | 2 +- .../modules/ROOT/pages/debezium-component.adoc | 254 .../ROOT/pages/debezium-mysql-component.adoc | 318 + .../modules/ROOT/pages/hdfs-component.adoc | 9 +- docs/components/modules/ROOT/pages/index.adoc | 2 +- .../ROOT/pages/sap-netweaver-component.adoc| 2 +- 6 files changed, 326 insertions(+), 261 deletions(-) diff --git a/docs/components/modules/ROOT/nav.adoc b/docs/components/modules/ROOT/nav.adoc index 802abe5..8649536 100644 --- a/docs/components/modules/ROOT/nav.adoc +++ b/docs/components/modules/ROOT/nav.adoc @@ -87,7 +87,7 @@ * xref:dataformat-component.adoc[Data Format Component] * xref:dataset-component.adoc[Dataset Component] * xref:dataset-test-component.adoc[DataSet Test Component] -* xref:debezium-component.adoc[Debezium Component] +* xref:debezium-mysql-component.adoc[Debezium MySQL Connector Component] * xref:digitalocean-component.adoc[DigitalOcean Component] * xref:direct-component.adoc[Direct Component] * xref:direct-vm-component.adoc[Direct VM Component] diff --git a/docs/components/modules/ROOT/pages/debezium-component.adoc b/docs/components/modules/ROOT/pages/debezium-component.adoc deleted file mode 100644 index f1b98ec..000 --- a/docs/components/modules/ROOT/pages/debezium-component.adoc +++ /dev/null @@ -1,254 +0,0 @@ -[[debezium-component]] -= Debezium Component -:page-source: components/camel-debezium/camel-debezium-component/src/main/docs/debezium-component.adoc - -*Since Camel 3.0* - -The Debezium component is wrapper around https://debezium.io/[Debezium] using https://debezium.io/documentation/reference/0.9/operations/embedded.html[Debezium Embedded], which enables Change Data Capture from various databases using Debezium without the need for Kafka or Kafka Connect. - -*Note on handling failures:* Per https://debezium.io/documentation/reference/0.9/operations/embedded.html#_handling_failures[Debezium Embedded Engine] documentation, the engines is actively recording source offsets and periodically flushes these offsets to a persistent storage, so when the application is restarted or crashed, the engine will resume from the last recorded offset. -Thus, at normal operation, your downstream routes will receive each event exactly once, however in case of an application crash (not having a graceful shutdown), the application will resume from the last recorded offset, -which may result in receiving duplicate events immediately after the restart. Therefore, your downstream routes should be tolerant enough of such case and deduplicate events if needed. - -Maven users will need to add the following dependency to their `pom.xml` -for this component. - -[source,xml] - - -org.apache.camel -camel-debezium -x.x.x - - - - -== URI format - -[source,text] -debezium:connector-type[?options] - -== Supported Debezium Connectors -- https://debezium.io/documentation/reference/0.9/connectors/mysql.html[MySQL]. - -*Note:* Other Debezium connectors are _not_ supported at the moment. - -*Note:* Due to licensing issues, you will need to add the dependency for `mysql-conenctor-java` if you are using MySQL connector, just add the following to your POM file: -[source,xml] - - -mysql -mysql-connector-java -8.0.15 - - - -== Options - - -// component options: START -The Debezium component supports 2 options, which are listed below. - - - -[width="100%",cols="2,5,^1,2",options="header"] -|=== -| Name | Description | Default | Type -| *configuration* (consumer) | Allow pre-configured Configurations to be set, you will need to extend EmbeddedDebeziumConfiguration in order to create the configuration for the component | | EmbeddedDebeziumConfiguration -| *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 - - -// endpoint options: START -The Debezium endpoint is configured using URI syntax: - - -debezium:connectorType - - -with the following path and query parameters: - -=== Path Parameters (1 parameters): - - -[width="100%",cols="2,5,^1,2",options="header"] -|=== -| Name | Description | Default | Type -| *connectorType* | *Required* The Debezium connector type that is supported by Camel Debezium component. | | String -|=== - - -=== Query Parameters (72
[camel] 03/07: CAMEL-14101 - Use Boolean and not boolean in JsonDataFormat
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 83ec8ebaddad38b81301f9e53ee121130fe016ea Author: Andrea Cosentino AuthorDate: Wed Oct 30 09:24:20 2019 +0100 CAMEL-14101 - Use Boolean and not boolean in JsonDataFormat --- .../camel-jackson/src/main/docs/json-jackson-dataformat.adoc | 2 +- .../camel-johnzon/src/main/docs/json-johnzon-dataformat.adoc | 2 +- .../java/org/apache/camel/model/dataformat/JsonDataFormat.java | 7 --- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/components/camel-jackson/src/main/docs/json-jackson-dataformat.adoc b/components/camel-jackson/src/main/docs/json-jackson-dataformat.adoc index 86d7fb8..0053ed0 100644 --- a/components/camel-jackson/src/main/docs/json-jackson-dataformat.adoc +++ b/components/camel-jackson/src/main/docs/json-jackson-dataformat.adoc @@ -43,7 +43,7 @@ The JSon Jackson dataformat supports 20 options, which are listed below. | permissions | | String | Adds permissions that controls which Java packages and classes XStream is allowed to use during unmarshal from xml/json to Java beans. A permission must be configured either here or globally using a JVM system property. The permission can be specified in a syntax where a plus sign is allow, and minus sign is deny. Wildcards is supported by using . as prefix. For example to allow com.foo and all subpackages then specfy com.foo.. Multiple permissions can be conf [...] | allowUnmarshallType | false | Boolean | If enabled then Jackson is allowed to attempt to use the CamelJacksonUnmarshalType header during the unmarshalling. This should only be enabled when desired to be used. | timezone | | String | If set then Jackson will use the Timezone when marshalling/unmarshalling. This option will have no effect on the others Json DataFormat, like gson, fastjson and xstream. -| autoDiscoverObjectMapper | false | boolean | If set to true then Jackson will lookup for an objectMapper into the registry +| autoDiscoverObjectMapper | false | Boolean | If set to true then Jackson will lookup for an objectMapper into the registry | contentTypeHeader | false | Boolean | Whether the data format should set the Content-Type header with the type from the data format if the data format is capable of doing so. For example application/xml for data formats marshalling to XML, or application/json for data formats marshalling to JSon etc. |=== // dataformat options: END diff --git a/components/camel-johnzon/src/main/docs/json-johnzon-dataformat.adoc b/components/camel-johnzon/src/main/docs/json-johnzon-dataformat.adoc index 4939fc6..b8d25a5 100644 --- a/components/camel-johnzon/src/main/docs/json-johnzon-dataformat.adoc +++ b/components/camel-johnzon/src/main/docs/json-johnzon-dataformat.adoc @@ -43,7 +43,7 @@ The JSon Johnzon dataformat supports 20 options, which are listed below. | permissions | | String | Adds permissions that controls which Java packages and classes XStream is allowed to use during unmarshal from xml/json to Java beans. A permission must be configured either here or globally using a JVM system property. The permission can be specified in a syntax where a plus sign is allow, and minus sign is deny. Wildcards is supported by using . as prefix. For example to allow com.foo and all subpackages then specfy com.foo.. Multiple permissions can be conf [...] | allowUnmarshallType | false | Boolean | If enabled then Jackson is allowed to attempt to use the CamelJacksonUnmarshalType header during the unmarshalling. This should only be enabled when desired to be used. | timezone | | String | If set then Jackson will use the Timezone when marshalling/unmarshalling. This option will have no effect on the others Json DataFormat, like gson, fastjson and xstream. -| autoDiscoverObjectMapper | false | boolean | If set to true then Jackson will lookup for an objectMapper into the registry +| autoDiscoverObjectMapper | false | Boolean | If set to true then Jackson will lookup for an objectMapper into the registry | contentTypeHeader | false | Boolean | Whether the data format should set the Content-Type header with the type from the data format if the data format is capable of doing so. For example application/xml for data formats marshalling to XML, or application/json for data formats marshalling to JSon etc. |=== // dataformat options: END diff --git a/core/camel-core-engine/src/main/java/org/apache/camel/model/dataformat/JsonDataFormat.java b/core/camel-core-engine/src/main/java/org/apache/camel/model/dataformat/JsonDataFormat.java index cde365e..06f350f 100644 --- a/core/camel-core-engine/src/main/java/org/apache/camel/model/dataformat/JsonDataFormat.java +++ b/core/camel-core-engine/src/main/java/org/apache/camel/model/dataformat/JsonDataFormat.java @@ -77,7 +77,8 @@ public class JsonDataFormat extends
[camel] 05/07: CAMEL-14101 - Fixed CS
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 e75c436ccb3efc347ccc5b62db783a02a0d44a98 Author: Andrea Cosentino AuthorDate: Wed Oct 30 09:24:29 2019 +0100 CAMEL-14101 - Fixed CS --- .../camel/component/jackson/JacksonDataFormat.java | 1137 ++-- .../component/jackson/ListJacksonDataFormat.java |5 +- .../jackson/converter/JacksonTypeConverters.java | 48 +- .../component/jackson/JacksonConcurrentTest.java |9 +- .../component/jackson/JacksonDataFormatTest.java |2 +- .../jackson/JacksonJsonDataFormatTest.java |2 +- .../jackson/JacksonMarshalDateTimezoneTest.java|3 +- .../jackson/JacksonMarshalUnmarshalListTest.java |6 +- .../JacksonNotUseDefaultObjectMapperTest.java |3 +- .../jackson/JacksonObjectListSplitTest.java|7 +- .../jackson/JacksonObjectMapperRegistryTest.java |8 +- .../SpringJacksonMarshalUnmarshalListTest.java |6 +- .../SpringJacksonObjectMapperRegistryTest.java |4 +- .../camel/component/jackson/TestJAXBPojo.java |4 +- .../camel/component/jackson/TestOtherPojo.java |2 +- .../apache/camel/component/jackson/TestPojo.java |4 +- .../camel/component/jackson/TestPojoView.java |6 +- .../org/apache/camel/component/jackson/Views.java |7 +- .../converter/JacksonConversionsPojoTest.java |5 +- .../converter/JacksonConversionsSimpleTest.java|3 +- .../jackson/converter/JacksonConversionsTest.java |5 +- 21 files changed, 641 insertions(+), 635 deletions(-) diff --git a/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/JacksonDataFormat.java b/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/JacksonDataFormat.java index c205e3b..35f5e4b 100644 --- a/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/JacksonDataFormat.java +++ b/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/JacksonDataFormat.java @@ -53,575 +53,572 @@ import org.apache.camel.support.service.ServiceSupport; @Dataformat("json-jackson") public class JacksonDataFormat extends ServiceSupport implements DataFormat, DataFormatName, CamelContextAware { - private CamelContext camelContext; - private ObjectMapper objectMapper; - private boolean useDefaultObjectMapper = true; - private Class collectionType; - private List modules; - private String moduleClassNames; - private String moduleRefs; - private Class unmarshalType; - private Class jsonView; - private String include; - private boolean prettyPrint; - private boolean allowJmsType; - private boolean useList; - private boolean enableJaxbAnnotationModule; - private String enableFeatures; - private String disableFeatures; - private boolean enableJacksonTypeConverter; - private boolean allowUnmarshallType; - private boolean contentTypeHeader = true; - private TimeZone timezone; - private boolean autoDiscoverObjectMapper; - - /** -* Use the default Jackson {@link ObjectMapper} and {@link Object} -*/ - public JacksonDataFormat() { - this(Object.class); - } - - /** -* Use the default Jackson {@link ObjectMapper} and with a custom unmarshal type -* -* @param unmarshalType the custom unmarshal type -*/ - public JacksonDataFormat(Class unmarshalType) { - this(unmarshalType, null); - } - - /** -* Use the default Jackson {@link ObjectMapper} and with a custom unmarshal type -* and JSON view -* -* @param unmarshalType the custom unmarshal type -* @param jsonView marker class to specify properties to be included during -* marshalling. See also -* http://wiki.fasterxml.com/JacksonJsonViews -*/ - public JacksonDataFormat(Class unmarshalType, Class jsonView) { - this(unmarshalType, jsonView, true); - } - - /** -* Use the default Jackson {@link ObjectMapper} and with a custom unmarshal type -* and JSON view -* -* @param unmarshalType the custom unmarshal type -* @param jsonView marker class to specify properties to be -* included during marshalling. See also -* http://wiki.fasterxml.com/JacksonJsonViews -* @param enableJaxbAnnotationModule if it is true, will enable the -* JaxbAnnotationModule. -*/ - public JacksonDataFormat(Class unmarshalType, Class jsonView, boolean
[camel] 02/07: CAMEL-14101 - Regen
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 193fe72d0a4edef66f95268224282156857db3ef Author: Andrea Cosentino AuthorDate: Wed Oct 30 09:24:12 2019 +0100 CAMEL-14101 - Regen --- .../src/main/docs/json-fastjson-dataformat.adoc | 6 -- .../camel-gson/src/main/docs/json-gson-dataformat.adoc | 6 -- .../src/main/docs/json-jackson-dataformat.adoc | 6 -- .../src/main/docs/json-johnzon-dataformat.adoc | 6 -- .../src/main/docs/json-xstream-dataformat.adoc | 3 ++- .../camel-xstream/src/main/docs/xstream-dataformat.adoc | 3 ++- .../modules/ROOT/pages/json-fastjson-dataformat.adoc| 6 -- .../components/modules/ROOT/pages/json-gson-dataformat.adoc | 6 -- .../modules/ROOT/pages/json-jackson-dataformat.adoc | 6 -- .../modules/ROOT/pages/json-johnzon-dataformat.adoc | 6 -- .../modules/ROOT/pages/json-xstream-dataformat.adoc | 3 ++- docs/components/modules/ROOT/pages/xstream-dataformat.adoc | 3 ++- .../springboot/FastjsonDataFormatConfiguration.java | 13 + .../gson/springboot/GsonDataFormatConfiguration.java| 13 + .../jackson/springboot/JacksonDataFormatConfiguration.java | 13 + .../johnzon/springboot/JohnzonDataFormatConfiguration.java | 13 + .../xstream/springboot/JsonDataFormatConfiguration.java | 13 + 17 files changed, 105 insertions(+), 20 deletions(-) diff --git a/components/camel-fastjson/src/main/docs/json-fastjson-dataformat.adoc b/components/camel-fastjson/src/main/docs/json-fastjson-dataformat.adoc index 9bf56b4..bbfc3fc 100644 --- a/components/camel-fastjson/src/main/docs/json-fastjson-dataformat.adoc +++ b/components/camel-fastjson/src/main/docs/json-fastjson-dataformat.adoc @@ -17,7 +17,7 @@ from("activemq:My.Queue"). // dataformat options: START -The JSon Fastjson dataformat supports 19 options, which are listed below. +The JSon Fastjson dataformat supports 20 options, which are listed below. @@ -42,6 +42,7 @@ The JSon Fastjson dataformat supports 19 options, which are listed below. | permissions | | String | Adds permissions that controls which Java packages and classes XStream is allowed to use during unmarshal from xml/json to Java beans. A permission must be configured either here or globally using a JVM system property. The permission can be specified in a syntax where a plus sign is allow, and minus sign is deny. Wildcards is supported by using . as prefix. For example to allow com.foo and all subpackages then specfy com.foo.. Multiple permissions can be conf [...] | allowUnmarshallType | false | Boolean | If enabled then Jackson is allowed to attempt to use the CamelJacksonUnmarshalType header during the unmarshalling. This should only be enabled when desired to be used. | timezone | | String | If set then Jackson will use the Timezone when marshalling/unmarshalling. This option will have no effect on the others Json DataFormat, like gson, fastjson and xstream. +| autoDiscoverObjectMapper | false | boolean | If set to true then Jackson will lookup for an objectMapper into the registry | contentTypeHeader | false | Boolean | Whether the data format should set the Content-Type header with the type from the data format if the data format is capable of doing so. For example application/xml for data formats marshalling to XML, or application/json for data formats marshalling to JSon etc. |=== // dataformat options: END @@ -61,7 +62,7 @@ When using Spring Boot make sure to use the following Maven dependency to have s -The component supports 19 options, which are listed below. +The component supports 20 options, which are listed below. @@ -70,6 +71,7 @@ The component supports 19 options, which are listed below. | Name | Description | Default | Type | *camel.dataformat.json-fastjson.allow-jms-type* | Used for JMS users to allow the JMSType header from the JMS spec to specify a FQN classname to use to unmarshal to. | false | Boolean | *camel.dataformat.json-fastjson.allow-unmarshall-type* | If enabled then Jackson is allowed to attempt to use the CamelJacksonUnmarshalType header during the unmarshalling. This should only be enabled when desired to be used. | false | Boolean +| *camel.dataformat.json-fastjson.auto-discover-object-mapper* | If set to true then Jackson will lookup for an objectMapper into the registry | false | Boolean | *camel.dataformat.json-fastjson.collection-type-name* | Refers to a custom collection type to lookup in the registry to use. This option should rarely be used, but allows to use different collection types than java.util.Collection based as default. | | String | *camel.dataformat.json-fastjson.content-type-header* | Whether the data format
[camel] branch master updated (9b21d36 -> 58d91ce)
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 9b21d36 Regen new 18aa634 CAMEL-14101 - json-jackson dataformat: potential ObjectMapper configuration clashes new 193fe72 CAMEL-14101 - Regen new 83ec8eb CAMEL-14101 - Use Boolean and not boolean in JsonDataFormat new 681ed35 CAMEL-14101 - Regen new e75c436 CAMEL-14101 - Fixed CS new 61ac81a CAMEL-14101 - Fixed CS in camel-core-engine new 58d91ce Regen The 7 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: .../src/main/docs/json-fastjson-dataformat.adoc| 6 +- .../src/main/docs/json-gson-dataformat.adoc| 6 +- .../src/main/docs/json-jackson-dataformat.adoc | 6 +- .../camel/component/jackson/JacksonDataFormat.java | 207 - .../component/jackson/ListJacksonDataFormat.java | 5 +- .../jackson/converter/JacksonTypeConverters.java | 48 ++--- .../component/jackson/JacksonConcurrentTest.java | 9 +- .../component/jackson/JacksonDataFormatTest.java | 2 +- .../jackson/JacksonJsonDataFormatTest.java | 2 +- .../jackson/JacksonMarshalDateTimezoneTest.java| 3 +- .../jackson/JacksonMarshalUnmarshalListTest.java | 6 +- .../JacksonNotUseDefaultObjectMapperTest.java | 3 +- .../jackson/JacksonObjectListSplitTest.java| 7 +- .../jackson/JacksonObjectMapperRegistryTest.java | 9 +- .../SpringJacksonMarshalUnmarshalListTest.java | 6 +- .../SpringJacksonObjectMapperRegistryTest.java | 4 +- .../camel/component/jackson/TestJAXBPojo.java | 4 +- .../camel/component/jackson/TestOtherPojo.java | 2 +- .../apache/camel/component/jackson/TestPojo.java | 4 +- .../camel/component/jackson/TestPojoView.java | 6 +- .../org/apache/camel/component/jackson/Views.java | 7 +- .../converter/JacksonConversionsPojoTest.java | 5 +- .../converter/JacksonConversionsSimpleTest.java| 3 +- .../jackson/converter/JacksonConversionsTest.java | 5 +- .../src/main/docs/json-johnzon-dataformat.adoc | 6 +- .../src/main/docs/json-xstream-dataformat.adoc | 3 +- .../src/main/docs/xstream-dataformat.adoc | 3 +- .../camel/model/dataformat/JsonDataFormat.java | 15 ++ .../ROOT/pages/json-fastjson-dataformat.adoc | 6 +- .../modules/ROOT/pages/json-gson-dataformat.adoc | 6 +- .../ROOT/pages/json-jackson-dataformat.adoc| 6 +- .../ROOT/pages/json-johnzon-dataformat.adoc| 6 +- .../ROOT/pages/json-xstream-dataformat.adoc| 3 +- .../modules/ROOT/pages/xstream-dataformat.adoc | 3 +- .../FastjsonDataFormatConfiguration.java | 13 ++ .../springboot/GsonDataFormatConfiguration.java| 13 ++ .../springboot/JacksonDataFormatConfiguration.java | 13 ++ .../springboot/JohnzonDataFormatConfiguration.java | 13 ++ .../springboot/JsonDataFormatConfiguration.java| 13 ++ 39 files changed, 311 insertions(+), 176 deletions(-)
[camel] 04/07: CAMEL-14101 - Regen
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 681ed3520b0eb38b47840cc26396e71adce6406d Author: Andrea Cosentino AuthorDate: Wed Oct 30 09:24:25 2019 +0100 CAMEL-14101 - Regen --- components/camel-xstream/src/main/docs/json-xstream-dataformat.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/camel-xstream/src/main/docs/json-xstream-dataformat.adoc b/components/camel-xstream/src/main/docs/json-xstream-dataformat.adoc index 5c3c52c..3734315 100644 --- a/components/camel-xstream/src/main/docs/json-xstream-dataformat.adoc +++ b/components/camel-xstream/src/main/docs/json-xstream-dataformat.adoc @@ -53,7 +53,7 @@ The JSon XStream dataformat supports 20 options, which are listed below. | permissions | | String | Adds permissions that controls which Java packages and classes XStream is allowed to use during unmarshal from xml/json to Java beans. A permission must be configured either here or globally using a JVM system property. The permission can be specified in a syntax where a plus sign is allow, and minus sign is deny. Wildcards is supported by using . as prefix. For example to allow com.foo and all subpackages then specfy com.foo.. Multiple permissions can be conf [...] | allowUnmarshallType | false | Boolean | If enabled then Jackson is allowed to attempt to use the CamelJacksonUnmarshalType header during the unmarshalling. This should only be enabled when desired to be used. | timezone | | String | If set then Jackson will use the Timezone when marshalling/unmarshalling. This option will have no effect on the others Json DataFormat, like gson, fastjson and xstream. -| autoDiscoverObjectMapper | false | boolean | If set to true then Jackson will lookup for an objectMapper into the registry +| autoDiscoverObjectMapper | false | Boolean | If set to true then Jackson will lookup for an objectMapper into the registry | contentTypeHeader | false | Boolean | Whether the data format should set the Content-Type header with the type from the data format if the data format is capable of doing so. For example application/xml for data formats marshalling to XML, or application/json for data formats marshalling to JSon etc. |=== // dataformat options: END
[camel] 06/07: CAMEL-14101 - Fixed CS in camel-core-engine
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 61ac81ae708aa432834b231f5f986e965273bf8d Author: Andrea Cosentino AuthorDate: Wed Oct 30 09:24:37 2019 +0100 CAMEL-14101 - Fixed CS in camel-core-engine --- .../camel/model/dataformat/JsonDataFormat.java | 26 +++--- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/core/camel-core-engine/src/main/java/org/apache/camel/model/dataformat/JsonDataFormat.java b/core/camel-core-engine/src/main/java/org/apache/camel/model/dataformat/JsonDataFormat.java index 06f350f..69e36e9 100644 --- a/core/camel-core-engine/src/main/java/org/apache/camel/model/dataformat/JsonDataFormat.java +++ b/core/camel-core-engine/src/main/java/org/apache/camel/model/dataformat/JsonDataFormat.java @@ -78,8 +78,7 @@ public class JsonDataFormat extends DataFormatDefinition { private String timezone; @XmlAttribute @Metadata(defaultValue = "false") - private Boolean autoDiscoverObjectMapper; - +private Boolean autoDiscoverObjectMapper; public JsonDataFormat() { super("json"); @@ -369,17 +368,18 @@ public class JsonDataFormat extends DataFormatDefinition { public void setTimezone(String timezone) { this.timezone = timezone; } - - public Boolean isAutoDiscoverObjectMapper() { - return autoDiscoverObjectMapper; - } - - /** -* If set to true then Jackson will lookup for an objectMapper into the registry -*/ - public void setAutoDiscoverObjectMapper(Boolean autoDiscoverObjectMapper) { - this.autoDiscoverObjectMapper = autoDiscoverObjectMapper; - } + +public Boolean isAutoDiscoverObjectMapper() { +return autoDiscoverObjectMapper; +} + +/** + * If set to true then Jackson will lookup for an objectMapper into the + * registry + */ +public void setAutoDiscoverObjectMapper(Boolean autoDiscoverObjectMapper) { +this.autoDiscoverObjectMapper = autoDiscoverObjectMapper; +} @Override public String getDataFormatName() {
[camel] 07/07: Regen
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 58d91ce6307d13212890c55c725743666373b461 Author: Andrea Cosentino AuthorDate: Wed Oct 30 09:56:50 2019 +0100 Regen --- components/camel-fastjson/src/main/docs/json-fastjson-dataformat.adoc | 2 +- components/camel-gson/src/main/docs/json-gson-dataformat.adoc | 2 +- docs/components/modules/ROOT/pages/json-fastjson-dataformat.adoc | 2 +- docs/components/modules/ROOT/pages/json-gson-dataformat.adoc | 2 +- docs/components/modules/ROOT/pages/json-jackson-dataformat.adoc | 2 +- docs/components/modules/ROOT/pages/json-johnzon-dataformat.adoc | 2 +- docs/components/modules/ROOT/pages/json-xstream-dataformat.adoc | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/components/camel-fastjson/src/main/docs/json-fastjson-dataformat.adoc b/components/camel-fastjson/src/main/docs/json-fastjson-dataformat.adoc index bbfc3fc..a5ab07f 100644 --- a/components/camel-fastjson/src/main/docs/json-fastjson-dataformat.adoc +++ b/components/camel-fastjson/src/main/docs/json-fastjson-dataformat.adoc @@ -42,7 +42,7 @@ The JSon Fastjson dataformat supports 20 options, which are listed below. | permissions | | String | Adds permissions that controls which Java packages and classes XStream is allowed to use during unmarshal from xml/json to Java beans. A permission must be configured either here or globally using a JVM system property. The permission can be specified in a syntax where a plus sign is allow, and minus sign is deny. Wildcards is supported by using . as prefix. For example to allow com.foo and all subpackages then specfy com.foo.. Multiple permissions can be conf [...] | allowUnmarshallType | false | Boolean | If enabled then Jackson is allowed to attempt to use the CamelJacksonUnmarshalType header during the unmarshalling. This should only be enabled when desired to be used. | timezone | | String | If set then Jackson will use the Timezone when marshalling/unmarshalling. This option will have no effect on the others Json DataFormat, like gson, fastjson and xstream. -| autoDiscoverObjectMapper | false | boolean | If set to true then Jackson will lookup for an objectMapper into the registry +| autoDiscoverObjectMapper | false | Boolean | If set to true then Jackson will lookup for an objectMapper into the registry | contentTypeHeader | false | Boolean | Whether the data format should set the Content-Type header with the type from the data format if the data format is capable of doing so. For example application/xml for data formats marshalling to XML, or application/json for data formats marshalling to JSon etc. |=== // dataformat options: END diff --git a/components/camel-gson/src/main/docs/json-gson-dataformat.adoc b/components/camel-gson/src/main/docs/json-gson-dataformat.adoc index dc221c0..d2e57bf 100644 --- a/components/camel-gson/src/main/docs/json-gson-dataformat.adoc +++ b/components/camel-gson/src/main/docs/json-gson-dataformat.adoc @@ -42,7 +42,7 @@ The JSon GSon dataformat supports 20 options, which are listed below. | permissions | | String | Adds permissions that controls which Java packages and classes XStream is allowed to use during unmarshal from xml/json to Java beans. A permission must be configured either here or globally using a JVM system property. The permission can be specified in a syntax where a plus sign is allow, and minus sign is deny. Wildcards is supported by using . as prefix. For example to allow com.foo and all subpackages then specfy com.foo.. Multiple permissions can be conf [...] | allowUnmarshallType | false | Boolean | If enabled then Jackson is allowed to attempt to use the CamelJacksonUnmarshalType header during the unmarshalling. This should only be enabled when desired to be used. | timezone | | String | If set then Jackson will use the Timezone when marshalling/unmarshalling. This option will have no effect on the others Json DataFormat, like gson, fastjson and xstream. -| autoDiscoverObjectMapper | false | boolean | If set to true then Jackson will lookup for an objectMapper into the registry +| autoDiscoverObjectMapper | false | Boolean | If set to true then Jackson will lookup for an objectMapper into the registry | contentTypeHeader | false | Boolean | Whether the data format should set the Content-Type header with the type from the data format if the data format is capable of doing so. For example application/xml for data formats marshalling to XML, or application/json for data formats marshalling to JSon etc. |=== // dataformat options: END diff --git a/docs/components/modules/ROOT/pages/json-fastjson-dataformat.adoc b/docs/components/modules/ROOT/pages/json-fastjson-dataformat.adoc index ef7794e..c25a265 100644 ---
[camel] 01/07: CAMEL-14101 - json-jackson dataformat: potential ObjectMapper configuration clashes
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 18aa63482affa009015de0644f5250380810cc02 Author: Andrea Cosentino AuthorDate: Tue Oct 29 14:42:46 2019 +0100 CAMEL-14101 - json-jackson dataformat: potential ObjectMapper configuration clashes --- .../camel/component/jackson/JacksonDataFormat.java | 1116 ++-- .../jackson/JacksonObjectMapperRegistryTest.java |7 +- .../camel/model/dataformat/JsonDataFormat.java | 14 + 3 files changed, 590 insertions(+), 547 deletions(-) diff --git a/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/JacksonDataFormat.java b/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/JacksonDataFormat.java index c412c90..c205e3b 100644 --- a/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/JacksonDataFormat.java +++ b/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/JacksonDataFormat.java @@ -53,551 +53,575 @@ import org.apache.camel.support.service.ServiceSupport; @Dataformat("json-jackson") public class JacksonDataFormat extends ServiceSupport implements DataFormat, DataFormatName, CamelContextAware { -private CamelContext camelContext; -private ObjectMapper objectMapper; -private boolean useDefaultObjectMapper = true; -private Class collectionType; -private List modules; -private String moduleClassNames; -private String moduleRefs; -private Class unmarshalType; -private Class jsonView; -private String include; -private boolean prettyPrint; -private boolean allowJmsType; -private boolean useList; -private boolean enableJaxbAnnotationModule; -private String enableFeatures; -private String disableFeatures; -private boolean enableJacksonTypeConverter; -private boolean allowUnmarshallType; -private boolean contentTypeHeader = true; -private TimeZone timezone; - -/** - * Use the default Jackson {@link ObjectMapper} and {@link Object} - */ -public JacksonDataFormat() { -this(Object.class); -} - -/** - * Use the default Jackson {@link ObjectMapper} and with a custom unmarshal - * type - * - * @param unmarshalType the custom unmarshal type - */ -public JacksonDataFormat(Class unmarshalType) { -this(unmarshalType, null); -} - -/** - * Use the default Jackson {@link ObjectMapper} and with a custom unmarshal - * type and JSON view - * - * @param unmarshalType the custom unmarshal type - * @param jsonView marker class to specify properties to be included during - *marshalling. See also - *http://wiki.fasterxml.com/JacksonJsonViews - */ -public JacksonDataFormat(Class unmarshalType, Class jsonView) { -this(unmarshalType, jsonView, true); -} - -/** - * Use the default Jackson {@link ObjectMapper} and with a custom unmarshal - * type and JSON view - * - * @param unmarshalType the custom unmarshal type - * @param jsonView marker class to specify properties to be included during - *marshalling. See also - *http://wiki.fasterxml.com/JacksonJsonViews - * @param enableJaxbAnnotationModule if it is true, will enable the - *JaxbAnnotationModule. - */ -public JacksonDataFormat(Class unmarshalType, Class jsonView, boolean enableJaxbAnnotationModule) { -this.unmarshalType = unmarshalType; -this.jsonView = jsonView; -this.enableJaxbAnnotationModule = enableJaxbAnnotationModule; -} - -/** - * Use a custom Jackson mapper and and unmarshal type - * - * @param mapper the custom mapper - * @param unmarshalType the custom unmarshal type - */ -public JacksonDataFormat(ObjectMapper mapper, Class unmarshalType) { -this(mapper, unmarshalType, null); -} - -/** - * Use a custom Jackson mapper, unmarshal type and JSON view - * - * @param mapper the custom mapper - * @param unmarshalType the custom unmarshal type - * @param jsonView marker class to specify properties to be included during - *marshalling. See also - *http://wiki.fasterxml.com/JacksonJsonViews - */ -public JacksonDataFormat(ObjectMapper mapper, Class unmarshalType, Class jsonView) { -this.objectMapper = mapper; -this.unmarshalType = unmarshalType; -this.jsonView = jsonView; -} - -@Override -public String getDataFormatName() { -return "json-jackson"; -} - -@Override -public CamelContext getCamelContext() { -return camelContext; -} - -@Override -public void setCamelContext(CamelContext camelContext) { -this.camelContext = camelContext; -} - -@Override -public
[GitHub] [camel-quarkus] ppalaga commented on issue #348: Fix #220 platform-http component should return 204 for success and no…
ppalaga commented on issue #348: Fix #220 platform-http component should return 204 for success and no… URL: https://github.com/apache/camel-quarkus/pull/348#issuecomment-547795777 bf76e48 replaced `LOG.debugf(e, "Could not handle '%s'", path)` with `getExceptionHandler().handleException("Failed handling platform-http endpoint " + path, exchg, e)` and enclosed `toExchange(ctx)` in the exception handler scope. 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] 01/02: CAMEL-14101 - Add a little log warn about customizations
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 00e196a457965f3a56558924946ed6e74bdc74fa Author: Andrea Cosentino AuthorDate: Wed Oct 30 10:12:48 2019 +0100 CAMEL-14101 - Add a little log warn about customizations --- .../main/java/org/apache/camel/component/jackson/JacksonDataFormat.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/JacksonDataFormat.java b/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/JacksonDataFormat.java index 35f5e4b..2c50391 100644 --- a/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/JacksonDataFormat.java +++ b/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/JacksonDataFormat.java @@ -613,6 +613,8 @@ public class JacksonDataFormat extends ServiceSupport implements DataFormat, Dat log.debug("Setting timezone to Object Mapper: {}", timezone); objectMapper.setTimeZone(timezone); } +} else { +log.warn("The objectMapper was already found in the registry, no customizations will be applied"); } }
[camel] branch master updated (c41989f -> b41e56a)
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 c41989f CAMEL-14097: camel-grpc - Preserve message headers in producer when forwaring exchange and setting response body. new 00e196a CAMEL-14101 - Add a little log warn about customizations new b41e56a Regen docs and fixed links for debezium 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: .../main/java/org/apache/camel/component/jackson/JacksonDataFormat.java | 2 ++ docs/user-manual/modules/ROOT/pages/index.adoc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-)
[camel] 02/02: Regen docs and fixed links for debezium
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 b41e56a31398db775eaabb57bef892c3a0eb843e Author: Andrea Cosentino AuthorDate: Wed Oct 30 10:52:41 2019 +0100 Regen docs and fixed links for debezium --- docs/user-manual/modules/ROOT/pages/index.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/user-manual/modules/ROOT/pages/index.adoc b/docs/user-manual/modules/ROOT/pages/index.adoc index a7513a0..627cb7b 100644 --- a/docs/user-manual/modules/ROOT/pages/index.adoc +++ b/docs/user-manual/modules/ROOT/pages/index.adoc @@ -207,7 +207,7 @@ camel routes without them knowing ** xref:components::crypto-cms-component.adoc[Crypto CMS] ** xref:components::cxf-component.adoc[CXF] ** xref:components::cxfrs-component.adoc[CXF-RS] -** xref:components::debezium-component.adoc[Debezium] +** xref:components::debezium-mysql-component.adoc[Debezium Mysql] ** xref:components::digitalocean-component.adoc[DigitalOcean] ** xref:components::disruptor-component.adoc[Disruptor] ** xref:components::dns-component.adoc[DNS]
[camel] branch master updated: Camel 14090: Break camel-debezium into camel-debezium-common and camel-debezium-mysql
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 c2586d1 Camel 14090: Break camel-debezium into camel-debezium-common and camel-debezium-mysql c2586d1 is described below commit c2586d1cc6694e3883fa1875a0d3ae8fd9b539af Author: Claus Ibsen AuthorDate: Wed Oct 30 09:16:00 2019 +0100 Camel 14090: Break camel-debezium into camel-debezium-common and camel-debezium-mysql --- ...va => DebeziumMySqlEndpointBuilderFactory.java} | 64 -- 1 file changed, 35 insertions(+), 29 deletions(-) diff --git a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/DebeziumEndpointBuilderFactory.java b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/DebeziumMySqlEndpointBuilderFactory.java similarity index 59% rename from core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/DebeziumEndpointBuilderFactory.java rename to core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/DebeziumMySqlEndpointBuilderFactory.java index bd4ae72..af1da2e 100644 --- a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/DebeziumEndpointBuilderFactory.java +++ b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/DebeziumMySqlEndpointBuilderFactory.java @@ -22,32 +22,35 @@ import org.apache.camel.builder.EndpointProducerBuilder; import org.apache.camel.builder.endpoint.AbstractEndpointBuilder; /** - * Represents a Debezium endpoint which is used for interacting with Debezium - * embedded engine. + * Represents a Debezium MySQL endpoint which is used to capture changes in + * MySQL database so that that applications can see those changes and respond to + * them. * * Generated by camel-package-maven-plugin - do not edit this file! */ @Generated("org.apache.camel.maven.packaging.EndpointDslMojo") -public interface DebeziumEndpointBuilderFactory { +public interface DebeziumMySqlEndpointBuilderFactory { /** - * Builder for endpoint for the Debezium component. + * Builder for endpoint for the Debezium MySQL Connector component. */ -public interface DebeziumEndpointBuilder extends EndpointConsumerBuilder { -default AdvancedDebeziumEndpointBuilder advanced() { -return (AdvancedDebeziumEndpointBuilder) this; +public interface DebeziumMySqlEndpointBuilder +extends +EndpointConsumerBuilder { +default AdvancedDebeziumMySqlEndpointBuilder advanced() { +return (AdvancedDebeziumMySqlEndpointBuilder) this; } } /** - * Advanced builder for endpoint for the Debezium component. + * Advanced builder for endpoint for the Debezium MySQL Connector component. */ -public interface AdvancedDebeziumEndpointBuilder +public interface AdvancedDebeziumMySqlEndpointBuilder extends EndpointConsumerBuilder { -default DebeziumEndpointBuilder basic() { -return (DebeziumEndpointBuilder) this; +default DebeziumMySqlEndpointBuilder basic() { +return (DebeziumMySqlEndpointBuilder) this; } /** * Whether the endpoint should use basic property binding (Camel 2.x) or @@ -57,7 +60,7 @@ public interface DebeziumEndpointBuilderFactory { * * Group: advanced */ -default AdvancedDebeziumEndpointBuilder basicPropertyBinding( +default AdvancedDebeziumMySqlEndpointBuilder basicPropertyBinding( boolean basicPropertyBinding) { doSetProperty("basicPropertyBinding", basicPropertyBinding); return this; @@ -70,7 +73,7 @@ public interface DebeziumEndpointBuilderFactory { * * Group: advanced */ -default AdvancedDebeziumEndpointBuilder basicPropertyBinding( +default AdvancedDebeziumMySqlEndpointBuilder basicPropertyBinding( String basicPropertyBinding) { doSetProperty("basicPropertyBinding", basicPropertyBinding); return this; @@ -83,7 +86,8 @@ public interface DebeziumEndpointBuilderFactory { * * Group: advanced */ -default AdvancedDebeziumEndpointBuilder synchronous(boolean synchronous) { +default AdvancedDebeziumMySqlEndpointBuilder synchronous( +boolean synchronous) { doSetProperty("synchronous", synchronous); return this; } @@ -95,32 +99,34 @@ public interface DebeziumEndpointBuilderFactory { * * Group: advanced */ -default AdvancedDebeziumEndpointBuilder synchronous(String synchronous) { +default AdvancedDebeziumMySqlEndpointBuilder synchronous( +
[camel] branch master updated (b41e56a -> 6e23c9c)
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 b41e56a Regen docs and fixed links for debezium add 6e23c9c Camel-Robotframework: Removed OSGi properties since not needed No new revisions were added by this update. Summary of changes: components/camel-robotframework/pom.xml | 5 - 1 file changed, 5 deletions(-)
[GitHub] [camel-quarkus] asf-ci commented on issue #348: Fix #220 platform-http component should return 204 for success and no…
asf-ci commented on issue #348: Fix #220 platform-http component should return 204 for success and no… URL: https://github.com/apache/camel-quarkus/pull/348#issuecomment-547834984 Refer to this link for build results (access rights to CI server needed): https://builds.apache.org/job/camel-quarkus-pr/359/ 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-quarkus] 01/02: Fix #220 platform-http component should return 204 for success and no body
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-quarkus.git commit b20849240e73559f761cadc0f64f098f4283590f Author: Peter Palaga AuthorDate: Tue Oct 29 12:31:15 2019 +0100 Fix #220 platform-http component should return 204 for success and no body --- .../http/runtime/QuarkusPlatformHttpConsumer.java | 36 -- .../platform/http/it/PlatformHttpRouteBuilder.java | 11 +++ .../component/http/server/it/PlatformHttpTest.java | 36 ++ 3 files changed, 73 insertions(+), 10 deletions(-) diff --git a/extensions/platform-http/runtime/src/main/java/org/apache/camel/quarkus/component/platform/http/runtime/QuarkusPlatformHttpConsumer.java b/extensions/platform-http/runtime/src/main/java/org/apache/camel/quarkus/component/platform/http/runtime/QuarkusPlatformHttpConsumer.java index 46886d1..051805c 100644 --- a/extensions/platform-http/runtime/src/main/java/org/apache/camel/quarkus/component/platform/http/runtime/QuarkusPlatformHttpConsumer.java +++ b/extensions/platform-http/runtime/src/main/java/org/apache/camel/quarkus/component/platform/http/runtime/QuarkusPlatformHttpConsumer.java @@ -152,11 +152,8 @@ public class QuarkusPlatformHttpConsumer extends DefaultConsumer { static Object toHttpResponse(HttpServerResponse response, Message message, HeaderFilterStrategy headerFilterStrategy) { final Exchange exchange = message.getExchange(); -final boolean failed = exchange.isFailed(); -final int defaultCode = failed ? 500 : 200; - -final int code = message.getHeader(Exchange.HTTP_RESPONSE_CODE, defaultCode, int.class); +final int code = determineResponseCode(exchange, message.getBody()); response.setStatusCode(code); final TypeConverter tc = exchange.getContext().getTypeConverter(); @@ -220,18 +217,37 @@ public class QuarkusPlatformHttpConsumer extends DefaultConsumer { return body; } +/* + * Copied from org.apache.camel.http.common.DefaultHttpBinding.determineResponseCode(Exchange, Object) + * If DefaultHttpBinding.determineResponseCode(Exchange, Object) is moved to a module without the servlet-api + * dependency we could eventually consume it from there. + */ +static int determineResponseCode(Exchange camelExchange, Object body) { +boolean failed = camelExchange.isFailed(); +int defaultCode = failed ? 500 : 200; + +Message message = camelExchange.getMessage(); +Integer currentCode = message.getHeader(Exchange.HTTP_RESPONSE_CODE, Integer.class); +int codeToUse = currentCode == null ? defaultCode : currentCode; + +if (codeToUse != 500) { +if ((body == null) || (body instanceof String && ((String) body).trim().isEmpty())) { +// no content +codeToUse = currentCode == null ? 204 : currentCode; +} +} + +return codeToUse; +} + static void writeResponse(RoutingContext ctx, Exchange camelExchange, HeaderFilterStrategy headerFilterStrategy) { final Object body = toHttpResponse(ctx.response(), camelExchange.getMessage(), headerFilterStrategy); final HttpServerResponse response = ctx.response(); if (body == null) { LOG.tracef("No payload to send as reply for exchange: %s", camelExchange); -response.putHeader("Content-Type", "text/plain; charset=utf-8"); -response.end("No response available"); -return; -} - -if (body instanceof String) { +response.end(); +} else if (body instanceof String) { response.end((String) body); } else if (body instanceof InputStream) { final byte[] bytes = new byte[4096]; diff --git a/integration-tests/platform-http/src/main/java/org/apache/camel/quarkus/component/platform/http/it/PlatformHttpRouteBuilder.java b/integration-tests/platform-http/src/main/java/org/apache/camel/quarkus/component/platform/http/it/PlatformHttpRouteBuilder.java index e023020..82cdef9 100644 --- a/integration-tests/platform-http/src/main/java/org/apache/camel/quarkus/component/platform/http/it/PlatformHttpRouteBuilder.java +++ b/integration-tests/platform-http/src/main/java/org/apache/camel/quarkus/component/platform/http/it/PlatformHttpRouteBuilder.java @@ -87,5 +87,16 @@ public class PlatformHttpRouteBuilder extends RouteBuilder { from("platform-http:/platform-http/produces?httpMethodRestrict=POST=text/plain") .setBody(simple("Hello ${body}")); +/* 204 tests */ +from("platform-http:/platform-http/null-body") +.setBody(constant(null)); +from("platform-http:/platform-http/empty-string-body") +.setBody().constant(""); +from("platform-http:/platform-http/some-string") +
[camel-quarkus] branch master updated (44d18e8 -> ac1ef8f)
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-quarkus.git. from 44d18e8 Fix #270 TarfileTest can fail on exotic platforms new b208492 Fix #220 platform-http component should return 204 for success and no body new ac1ef8f Fix #299 Use Camel's async processor in platform-http 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: .../http/runtime/QuarkusPlatformHttpConsumer.java | 52 -- .../platform/http/it/PlatformHttpRouteBuilder.java | 11 + .../component/http/server/it/PlatformHttpTest.java | 36 +++ 3 files changed, 85 insertions(+), 14 deletions(-)
[GitHub] [camel-quarkus] lburgazzoli closed issue #220: platform-http component should return 204 for success and no body
lburgazzoli closed issue #220: platform-http component should return 204 for success and no body URL: https://github.com/apache/camel-quarkus/issues/220 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-quarkus] 02/02: Fix #299 Use Camel's async processor in platform-http
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-quarkus.git commit ac1ef8f2344a51599efc4a48d48b07f8fb3d96c3 Author: Peter Palaga AuthorDate: Wed Oct 30 09:44:22 2019 +0100 Fix #299 Use Camel's async processor in platform-http --- .../http/runtime/QuarkusPlatformHttpConsumer.java| 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/extensions/platform-http/runtime/src/main/java/org/apache/camel/quarkus/component/platform/http/runtime/QuarkusPlatformHttpConsumer.java b/extensions/platform-http/runtime/src/main/java/org/apache/camel/quarkus/component/platform/http/runtime/QuarkusPlatformHttpConsumer.java index 051805c..b9bfa99 100644 --- a/extensions/platform-http/runtime/src/main/java/org/apache/camel/quarkus/component/platform/http/runtime/QuarkusPlatformHttpConsumer.java +++ b/extensions/platform-http/runtime/src/main/java/org/apache/camel/quarkus/component/platform/http/runtime/QuarkusPlatformHttpConsumer.java @@ -111,13 +111,21 @@ public class QuarkusPlatformHttpConsumer extends DefaultConsumer { newRoute.handler( ctx -> { +Exchange exchg = null; try { -final Exchange e = toExchange(ctx); -getProcessor().process(e); -writeResponse(ctx, e, getEndpoint().getHeaderFilterStrategy()); +final Exchange exchange = exchg = toExchange(ctx); +createUoW(exchange); +getAsyncProcessor().process( +exchange, +doneSync -> writeResponse(ctx, exchange, getEndpoint().getHeaderFilterStrategy()) +); } catch (Exception e) { -LOG.debugf(e, "Could not handle '%s'", path); ctx.fail(e); +getExceptionHandler().handleException("Failed handling platform-http endpoint " + path, exchg, e); +} finally { +if (exchg != null) { +doneUoW(exchg); +} } } );
[GitHub] [camel-quarkus] lburgazzoli closed issue #299: Use Camel's async processor in platform-http
lburgazzoli closed issue #299: Use Camel's async processor in platform-http URL: https://github.com/apache/camel-quarkus/issues/299 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 merged pull request #348: Fix #220 platform-http component should return 204 for success and no…
lburgazzoli merged pull request #348: Fix #220 platform-http component should return 204 for success and no… URL: https://github.com/apache/camel-quarkus/pull/348 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 #352: Re-enable the FHIR tests once the FHIR testing service is back again
ppalaga opened a new issue #352: Re-enable the FHIR tests once the FHIR testing service is back again URL: https://github.com/apache/camel-quarkus/issues/352 Set `quarkus.camel.fhir.enable-dstu3=true` in https://github.com/apache/camel-quarkus/blob/master/integration-tests/fhir/src/main/resources/application.properties#L29 and ``` true true ``` in https://github.com/apache/camel-quarkus/blob/master/integration-tests/fhir/pom.xml#L81-L82 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] davsclaus commented on a change in pull request #348: Fix #220 platform-http component should return 204 for success and no…
davsclaus commented on a change in pull request #348: Fix #220 platform-http component should return 204 for success and no… URL: https://github.com/apache/camel-quarkus/pull/348#discussion_r340464216 ## File path: extensions/platform-http/runtime/src/main/java/org/apache/camel/quarkus/component/platform/http/runtime/QuarkusPlatformHttpConsumer.java ## @@ -111,13 +111,18 @@ protected void doStart() throws Exception { newRoute.handler( ctx -> { +final Exchange exchange = toExchange(ctx); try { -final Exchange e = toExchange(ctx); -getProcessor().process(e); -writeResponse(ctx, e, getEndpoint().getHeaderFilterStrategy()); +createUoW(exchange); +getAsyncProcessor().process( +exchange, +doneSync -> writeResponse(ctx, exchange, getEndpoint().getHeaderFilterStrategy()) +); } catch (Exception e) { LOG.debugf(e, "Could not handle '%s'", path); ctx.fail(e); Review comment: yeah ctx.fail is fine 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: Upgrade swagger
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 5be27b6 Upgrade swagger 5be27b6 is described below commit 5be27b68080dab739ef28c85e69abb2331b041a5 Author: Claus Ibsen AuthorDate: Wed Oct 30 08:54:34 2019 +0100 Upgrade swagger --- parent/pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parent/pom.xml b/parent/pom.xml index 51f108f..e6c0363 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -614,8 +614,8 @@ 2.5.0_2 2.0.0 1.19 -1.5.23 -1.0.46 +1.5.24 +1.0.47 27.1-jre 1.0.1 3.1.4
[camel] branch master updated: Removed Typo (#3295)
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 28a1ebd Removed Typo (#3295) 28a1ebd is described below commit 28a1ebd294bcfa0530248ad991bbc681c848e4cd Author: LiMiNiNo AuthorDate: Wed Oct 30 09:00:00 2019 +0100 Removed Typo (#3295) --- .../camel-sap-netweaver/src/main/docs/sap-netweaver-component.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/camel-sap-netweaver/src/main/docs/sap-netweaver-component.adoc b/components/camel-sap-netweaver/src/main/docs/sap-netweaver-component.adoc index 36864f2..8fd2533 100644 --- a/components/camel-sap-netweaver/src/main/docs/sap-netweaver-component.adoc +++ b/components/camel-sap-netweaver/src/main/docs/sap-netweaver-component.adoc @@ -209,7 +209,7 @@ HTML page -When running the application you get sampel output: +When running the application you get sample output: [source,java] ---
[GitHub] [camel-k] dylanenabled opened a new issue #1030: Way to set a serviceaccount for the integration pod?
dylanenabled opened a new issue #1030: Way to set a serviceaccount for the integration pod? URL: https://github.com/apache/camel-k/issues/1030 I'm using AWS EKS to host a kubernetes cluster and I want my camelk integration to connect to an AWS SQS queue to receive messages. AWS recently released [IAM roles for service accounts ](https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html) which lets me attach a role to serviceaccounts with policies that allow the role to access the SQS service. (It does this by injecting environment variables and a secret volume into the pod containers with that service account attached). So, basically, is there a way to tell `kamel run` to attach a specific serviceaccount to the pod it creates? 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 #136: @ConfigProperty not injected in a RouteBuilder
ppalaga commented on issue #136: @ConfigProperty not injected in a RouteBuilder URL: https://github.com/apache/camel-quarkus/issues/136#issuecomment-547844788 I have primitive PoC how this could work. 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
[camel] 01/01: CAMEL-13914: Add build phase to service lifecycle in Camel which can be leveraged by camel-quarkus and others where we can prepare for special build-time optimizations.
This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch doBuild in repository https://gitbox.apache.org/repos/asf/camel.git commit b89b4fbacbfbd96d6c2a45e6a895980499d9fa34 Author: Claus Ibsen AuthorDate: Wed Oct 30 11:05:28 2019 +0100 CAMEL-13914: Add build phase to service lifecycle in Camel which can be leveraged by camel-quarkus and others where we can prepare for special build-time optimizations. --- .../src/main/java/org/apache/camel/Service.java| 9 .../camel/support/service/ServiceSupport.java | 53 +- .../apache/camel/support/ServiceSupportTest.java | 22 + 3 files changed, 72 insertions(+), 12 deletions(-) diff --git a/core/camel-api/src/main/java/org/apache/camel/Service.java b/core/camel-api/src/main/java/org/apache/camel/Service.java index f58f4bb..f98762f 100644 --- a/core/camel-api/src/main/java/org/apache/camel/Service.java +++ b/core/camel-api/src/main/java/org/apache/camel/Service.java @@ -24,6 +24,15 @@ import java.io.IOException; public interface Service extends AutoCloseable { /** + * Optional build phase which is executed by frameworks that supports pre-building projects (pre-compile) + * which allows special optimizations such as camel-quarkus. + * + * @throws RuntimeCamelException is thrown if build failed + */ +default void build() { +} + +/** * Initialize the service * * @throws RuntimeCamelException is thrown if initialization failed diff --git a/core/camel-api/src/main/java/org/apache/camel/support/service/ServiceSupport.java b/core/camel-api/src/main/java/org/apache/camel/support/service/ServiceSupport.java index 23a1e68..be5db4f 100644 --- a/core/camel-api/src/main/java/org/apache/camel/support/service/ServiceSupport.java +++ b/core/camel-api/src/main/java/org/apache/camel/support/service/ServiceSupport.java @@ -37,26 +37,44 @@ import org.slf4j.LoggerFactory; public abstract class ServiceSupport implements StatefulService { protected static final int NEW = 0; -protected static final int INITIALIZED = 1; -protected static final int STARTING = 2; -protected static final int STARTED = 3; -protected static final int SUSPENDING = 4; -protected static final int SUSPENDED = 5; -protected static final int STOPPING = 6; -protected static final int STOPPED = 7; -protected static final int SHUTTINGDOWN = 8; -protected static final int SHUTDOWN = 9; -protected static final int FAILED = 10; +protected static final int BUILDED = 1; +protected static final int INITIALIZED = 2; +protected static final int STARTING = 3; +protected static final int STARTED = 4; +protected static final int SUSPENDING = 5; +protected static final int SUSPENDED = 6; +protected static final int STOPPING = 7; +protected static final int STOPPED = 8; +protected static final int SHUTTINGDOWN = 9; +protected static final int SHUTDOWN = 10; +protected static final int FAILED = 11; protected final Logger log = LoggerFactory.getLogger(getClass()); protected final Object lock = new Object(); protected volatile int status = NEW; @Override -public void init() { +public void build() { if (status == NEW) { synchronized (lock) { if (status == NEW) { +log.trace("Building service: {}", this); +try { +doBuild(); +} catch (Exception e) { +throw RuntimeCamelException.wrapRuntimeException(e); +} +status = BUILDED; +} +} +} +} + +@Override +public void init() { +if (status <= BUILDED) { +synchronized (lock) { +if (status <= BUILDED) { log.trace("Initializing service: {}", this); try { doInit(); @@ -261,6 +279,10 @@ public abstract class ServiceSupport implements StatefulService { return status == NEW; } +public boolean isBuild() { +return status == BUILDED; +} + public boolean isInit() { return status == INITIALIZED; } @@ -282,7 +304,7 @@ public abstract class ServiceSupport implements StatefulService { @Override public boolean isStopped() { -return status == NEW || status == INITIALIZED || status == STOPPED || status == SHUTTINGDOWN || status == SHUTDOWN || status == FAILED; +return status == NEW || status == INITIALIZED || status == BUILDED || status == STOPPED || status == SHUTTINGDOWN || status == SHUTDOWN || status == FAILED; } @Override @@ -326,6 +348,13 @@ public abstract class ServiceSupport implements StatefulService { } /** + * Optional build phase of the service. + * This method will only
[camel] branch doBuild created (now b89b4fb)
This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a change to branch doBuild in repository https://gitbox.apache.org/repos/asf/camel.git. at b89b4fb CAMEL-13914: Add build phase to service lifecycle in Camel which can be leveraged by camel-quarkus and others where we can prepare for special build-time optimizations. This branch includes the following new commits: new b89b4fb CAMEL-13914: Add build phase to service lifecycle in Camel which can be leveraged by camel-quarkus and others where we can prepare for special build-time optimizations. The 1 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.
[GitHub] [camel-quarkus] ppalaga commented on a change in pull request #348: Fix #220 platform-http component should return 204 for success and no…
ppalaga commented on a change in pull request #348: Fix #220 platform-http component should return 204 for success and no… URL: https://github.com/apache/camel-quarkus/pull/348#discussion_r340461185 ## File path: extensions/platform-http/runtime/src/main/java/org/apache/camel/quarkus/component/platform/http/runtime/QuarkusPlatformHttpConsumer.java ## @@ -111,13 +111,18 @@ protected void doStart() throws Exception { newRoute.handler( ctx -> { +final Exchange exchange = toExchange(ctx); try { -final Exchange e = toExchange(ctx); -getProcessor().process(e); -writeResponse(ctx, e, getEndpoint().getHeaderFilterStrategy()); +createUoW(exchange); +getAsyncProcessor().process( +exchange, +doneSync -> writeResponse(ctx, exchange, getEndpoint().getHeaderFilterStrategy()) +); } catch (Exception e) { LOG.debugf(e, "Could not handle '%s'", path); ctx.fail(e); Review comment: Yes, I'd see `getExceptionHandler().handleException(e)` as a good replacement for the current `LOG.debugf(e, "Could not handle '%s'", path)` because the default `LoggingExceptionHandler` just does some logging and the message it logs is actually better than `Could not handle '%s'`. But we still need to mark the Vert.x `RoutingContext` as failed somehow, because otherwise it will hang forever, won't it? We have no custom ExceptionHandler on the Camel side that would do this and I see no good reason to create one, because calling `ctx.fail(e)` is much less code. WDYT? 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.24.x updated: CAMEL-14097: camel-grpc - Preserve message headers in producer when forwaring exchange and setting response body.
This is an automated email from the ASF dual-hosted git repository. davsclaus 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 3349f48 CAMEL-14097: camel-grpc - Preserve message headers in producer when forwaring exchange and setting response body. 3349f48 is described below commit 3349f4803f4814fe8663933dc52f3119b1b86805 Author: Claus Ibsen AuthorDate: Wed Oct 30 10:39:37 2019 +0100 CAMEL-14097: camel-grpc - Preserve message headers in producer when forwaring exchange and setting response body. --- .../apache/camel/component/grpc/client/GrpcSimpleExchangeForwarder.java | 1 + 1 file changed, 1 insertion(+) diff --git a/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/client/GrpcSimpleExchangeForwarder.java b/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/client/GrpcSimpleExchangeForwarder.java index 036b995..2671889 100644 --- a/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/client/GrpcSimpleExchangeForwarder.java +++ b/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/client/GrpcSimpleExchangeForwarder.java @@ -55,6 +55,7 @@ class GrpcSimpleExchangeForwarder implements GrpcExchangeForwarder { public void forward(Exchange exchange) { Message message = exchange.getIn(); Object outBody = GrpcUtils.invokeSyncMethod(grpcStub, configuration.getMethod(), message.getBody()); +exchange.getOut().setHeaders(exchange.getIn().getHeaders()); exchange.getOut().setBody(outBody); }
[camel] branch camel-2.x updated: CAMEL-14097: camel-grpc - Preserve message headers in producer when forwaring exchange and setting response body.
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 523bda0 CAMEL-14097: camel-grpc - Preserve message headers in producer when forwaring exchange and setting response body. 523bda0 is described below commit 523bda01ecb8986d4ce58b9d27cfb975d767bc18 Author: Claus Ibsen AuthorDate: Wed Oct 30 10:39:37 2019 +0100 CAMEL-14097: camel-grpc - Preserve message headers in producer when forwaring exchange and setting response body. --- .../apache/camel/component/grpc/client/GrpcSimpleExchangeForwarder.java | 1 + 1 file changed, 1 insertion(+) diff --git a/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/client/GrpcSimpleExchangeForwarder.java b/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/client/GrpcSimpleExchangeForwarder.java index 036b995..2671889 100644 --- a/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/client/GrpcSimpleExchangeForwarder.java +++ b/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/client/GrpcSimpleExchangeForwarder.java @@ -55,6 +55,7 @@ class GrpcSimpleExchangeForwarder implements GrpcExchangeForwarder { public void forward(Exchange exchange) { Message message = exchange.getIn(); Object outBody = GrpcUtils.invokeSyncMethod(grpcStub, configuration.getMethod(), message.getBody()); +exchange.getOut().setHeaders(exchange.getIn().getHeaders()); exchange.getOut().setBody(outBody); }
[camel] branch master updated: CAMEL-14097: camel-grpc - Preserve message headers in producer when forwaring exchange and setting response body.
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 c41989f CAMEL-14097: camel-grpc - Preserve message headers in producer when forwaring exchange and setting response body. c41989f is described below commit c41989f2d0b2c6ca79f8d9b30325741abcbd5375 Author: Claus Ibsen AuthorDate: Wed Oct 30 10:39:37 2019 +0100 CAMEL-14097: camel-grpc - Preserve message headers in producer when forwaring exchange and setting response body. --- .../apache/camel/component/grpc/client/GrpcSimpleExchangeForwarder.java | 1 + 1 file changed, 1 insertion(+) diff --git a/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/client/GrpcSimpleExchangeForwarder.java b/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/client/GrpcSimpleExchangeForwarder.java index d13c248..78f3d94 100644 --- a/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/client/GrpcSimpleExchangeForwarder.java +++ b/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/client/GrpcSimpleExchangeForwarder.java @@ -55,6 +55,7 @@ class GrpcSimpleExchangeForwarder implements GrpcExchangeForwarder { public void forward(Exchange exchange) { Message message = exchange.getIn(); Object outBody = GrpcUtils.invokeSyncMethod(grpcStub, configuration.getMethod(), message.getBody()); +exchange.getOut().setHeaders(exchange.getIn().getHeaders()); exchange.getOut().setBody(outBody); }
[GitHub] [camel-k] dylanenabled opened a new issue #1031: Support for AWS ECR in kaniko builder
dylanenabled opened a new issue #1031: Support for AWS ECR in kaniko builder URL: https://github.com/apache/camel-k/issues/1031 Currently the kaniko builder only supports pushing images to Google. I'd like it if kaniko could push builds to AWS ECR. It looks like this is fairly straightforward to implement in the kaniko image as described in the [documentation](https://github.com/GoogleContainerTools/kaniko#pushing-to-amazon-ecr). It looks like being able to define a `--registryDockerConfig` parameter when installing would work. This could save a provided docker `config.json` to a configmap, and then mounts it at `/kaniko/.docker` in the build image, similar to how the kaniko secret is saved. The aws account credentials could be saved similarly to how it is done for GCR. instead mounted to `/root/.aws`, but this could be optional because the IAM credentials could also be provided to the builder by EKS via the IAM integration using the camel-k-builder serviceaccount if the cluster has that set up (see #1030) 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-13914: Add build phase to service lifecycle in Camel which can be leveraged by camel-quarkus and others where we can prepare for special build-time optimizations.
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 05a3372 CAMEL-13914: Add build phase to service lifecycle in Camel which can be leveraged by camel-quarkus and others where we can prepare for special build-time optimizations. (#3296) 05a3372 is described below commit 05a33727906bbe208a2fa71c505151ae16ce2021 Author: Claus Ibsen AuthorDate: Wed Oct 30 12:18:41 2019 +0100 CAMEL-13914: Add build phase to service lifecycle in Camel which can be leveraged by camel-quarkus and others where we can prepare for special build-time optimizations. (#3296) --- .../src/main/java/org/apache/camel/Service.java| 9 .../camel/support/service/ServiceSupport.java | 53 +- .../apache/camel/support/ServiceSupportTest.java | 22 + 3 files changed, 72 insertions(+), 12 deletions(-) diff --git a/core/camel-api/src/main/java/org/apache/camel/Service.java b/core/camel-api/src/main/java/org/apache/camel/Service.java index f58f4bb..f98762f 100644 --- a/core/camel-api/src/main/java/org/apache/camel/Service.java +++ b/core/camel-api/src/main/java/org/apache/camel/Service.java @@ -24,6 +24,15 @@ import java.io.IOException; public interface Service extends AutoCloseable { /** + * Optional build phase which is executed by frameworks that supports pre-building projects (pre-compile) + * which allows special optimizations such as camel-quarkus. + * + * @throws RuntimeCamelException is thrown if build failed + */ +default void build() { +} + +/** * Initialize the service * * @throws RuntimeCamelException is thrown if initialization failed diff --git a/core/camel-api/src/main/java/org/apache/camel/support/service/ServiceSupport.java b/core/camel-api/src/main/java/org/apache/camel/support/service/ServiceSupport.java index 23a1e68..be5db4f 100644 --- a/core/camel-api/src/main/java/org/apache/camel/support/service/ServiceSupport.java +++ b/core/camel-api/src/main/java/org/apache/camel/support/service/ServiceSupport.java @@ -37,26 +37,44 @@ import org.slf4j.LoggerFactory; public abstract class ServiceSupport implements StatefulService { protected static final int NEW = 0; -protected static final int INITIALIZED = 1; -protected static final int STARTING = 2; -protected static final int STARTED = 3; -protected static final int SUSPENDING = 4; -protected static final int SUSPENDED = 5; -protected static final int STOPPING = 6; -protected static final int STOPPED = 7; -protected static final int SHUTTINGDOWN = 8; -protected static final int SHUTDOWN = 9; -protected static final int FAILED = 10; +protected static final int BUILDED = 1; +protected static final int INITIALIZED = 2; +protected static final int STARTING = 3; +protected static final int STARTED = 4; +protected static final int SUSPENDING = 5; +protected static final int SUSPENDED = 6; +protected static final int STOPPING = 7; +protected static final int STOPPED = 8; +protected static final int SHUTTINGDOWN = 9; +protected static final int SHUTDOWN = 10; +protected static final int FAILED = 11; protected final Logger log = LoggerFactory.getLogger(getClass()); protected final Object lock = new Object(); protected volatile int status = NEW; @Override -public void init() { +public void build() { if (status == NEW) { synchronized (lock) { if (status == NEW) { +log.trace("Building service: {}", this); +try { +doBuild(); +} catch (Exception e) { +throw RuntimeCamelException.wrapRuntimeException(e); +} +status = BUILDED; +} +} +} +} + +@Override +public void init() { +if (status <= BUILDED) { +synchronized (lock) { +if (status <= BUILDED) { log.trace("Initializing service: {}", this); try { doInit(); @@ -261,6 +279,10 @@ public abstract class ServiceSupport implements StatefulService { return status == NEW; } +public boolean isBuild() { +return status == BUILDED; +} + public boolean isInit() { return status == INITIALIZED; } @@ -282,7 +304,7 @@ public abstract class ServiceSupport implements StatefulService { @Override public boolean isStopped() { -return status == NEW || status == INITIALIZED || status == STOPPED || status == SHUTTINGDOWN || status == SHUTDOWN || status == FAILED; +return status == NEW || status == INITIALIZED || status ==
[camel-website] branch master updated: CAMEL-14061 camel-website - Add page for contributing
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-website.git The following commit(s) were added to refs/heads/master by this push: new 111be4d CAMEL-14061 camel-website - Add page for contributing new d07e621 Merge pull request #97 from akieling/CAMEL-14061 111be4d is described below commit 111be4d8126aab0744e70130b2f908cadff183f8 Author: Alexandre Kieling AuthorDate: Wed Oct 30 07:44:02 2019 -0300 CAMEL-14061 camel-website - Add page for contributing --- antora-ui-camel/src/partials/footer-content.hbs | 2 +- config.toml | 2 +- content/_index.md | 8 content/community/support.md| 14 +++--- layouts/partials/footer.html| 2 +- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/antora-ui-camel/src/partials/footer-content.hbs b/antora-ui-camel/src/partials/footer-content.hbs index db53bce..e8ef75c 100644 --- a/antora-ui-camel/src/partials/footer-content.hbs +++ b/antora-ui-camel/src/partials/footer-content.hbs @@ -14,7 +14,7 @@ Community Support -https://github.com/apache/camel/blob/master/CONTRIBUTING.md;>Contributing +Contributing User stories Articles Books diff --git a/config.toml b/config.toml index c55532d..f18e26e 100644 --- a/config.toml +++ b/config.toml @@ -108,7 +108,7 @@ enableRobotsTXT = true parent = "community" weight = 2 identifier = "community-contributing" -url = "https://github.com/apache/camel/blob/master/CONTRIBUTING.md; +url = "/manual/latest/contributing.html" [[menu.main]] name = "User stories" diff --git a/content/_index.md b/content/_index.md index 0a8f23c..b3bafad 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,6 +1,6 @@ --- title: Home -description: Camel is an open source integration framework that empowers you to quickly and easily integrate various systems consuming or producing data. +description: Camel is an open source integration framework that empowers you to quickly and easily integrate various systems consuming or producing data. --- {{< section "frontpage columns" >}} @@ -76,13 +76,13 @@ Camel supports around 50 data formats, allowing to translate messages}} **Camel is your project!** -Camel is an [Apache Software Foundation](https://www.apache.org) project, available under the [Apache v2 license](https://apache.org/licenses/LICENSE-2.0). It's a complete open community, always listening proposals and comments. +Camel is an [Apache Software Foundation](https://www.apache.org) project, available under the [Apache v2 license](https://apache.org/licenses/LICENSE-2.0). It's a complete open community, always listening proposals and comments. [Sources](./community/sources/), [mailing lists](./community/mailing-list/), [issue tracker](./community/support/): it's fully open, you can access directly. -We also love contributions: don't hesitate to [contribute](https://github.com/apache/camel/blob/master/CONTRIBUTING.md). You can contribute by https://github.com/apache/camel-website/edit/master/content{{ .File.Path }}">editing this page! +We also love contributions: don't hesitate to [contribute](./manual/latest/contributing.html). You can contribute by https://github.com/apache/camel-website/edit/master/content{{ .File.Path }}">editing this page! -[Be Involved In The Community](https://github.com/apache/camel/blob/master/CONTRIBUTING.md) | [How To Contribute](https://github.com/apache/camel/blob/master/CONTRIBUTING.md) +[Be Involved In The Community](./manual/latest/contributing.html) | [How To Contribute](./manual/latest/contributing.html) {{< /div >}} diff --git a/content/community/support.md b/content/community/support.md index 3f80191..ccf30c4 100644 --- a/content/community/support.md +++ b/content/community/support.md @@ -4,9 +4,9 @@ title: "Support" ## Getting help -If you are experiencing problems using Camel then please report your problem to our mailing list. This allows the entire community to help with your problem. -If indeed a bug has been identified in the Camel software, then document the problem in our [Issue Tracker](https://issues.apache.org/jira/browse/CAMEL). -Please refrain from immediately opening a ticket in the issue tracker unless you are certain it's a problem in the Camel software. +If you are experiencing problems using Camel then please report your problem to our mailing list. This allows the entire community to help with your problem. +If indeed a bug has been identified in the Camel software, then document the problem in our [Issue Tracker](https://issues.apache.org/jira/browse/CAMEL). +Please refrain from immediately opening a ticket in the
[GitHub] [camel-quarkus] asf-ci commented on issue #350: Upgrade to quarkus 0.27.0
asf-ci commented on issue #350: Upgrade to quarkus 0.27.0 URL: https://github.com/apache/camel-quarkus/pull/350#issuecomment-547932459 Refer to this link for build results (access rights to CI server needed): https://builds.apache.org/job/camel-quarkus-pr/361/ 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] oscerd commented on issue #353: Camel quarkus netty
oscerd commented on issue #353: Camel quarkus netty URL: https://github.com/apache/camel-quarkus/pull/353#issuecomment-547950259 And by the way you have conflicts need to be fixed. 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-13844: Deprecate get rest configuration api for non default as we want to only have 1 in the future.
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 6014e85 CAMEL-13844: Deprecate get rest configuration api for non default as we want to only have 1 in the future. 6014e85 is described below commit 6014e85b7ce6cd5e0276a16d5c02bb2d9c11979e Author: Claus Ibsen AuthorDate: Wed Oct 30 13:05:46 2019 +0100 CAMEL-13844: Deprecate get rest configuration api for non default as we want to only have 1 in the future. --- core/camel-api/src/main/java/org/apache/camel/CamelContext.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/camel-api/src/main/java/org/apache/camel/CamelContext.java b/core/camel-api/src/main/java/org/apache/camel/CamelContext.java index f86b7a0..1eb0633 100644 --- a/core/camel-api/src/main/java/org/apache/camel/CamelContext.java +++ b/core/camel-api/src/main/java/org/apache/camel/CamelContext.java @@ -630,6 +630,7 @@ public interface CamelContext extends StatefulService, RuntimeConfiguration { * * @param restConfiguration the REST configuration */ +@Deprecated void addRestConfiguration(RestConfiguration restConfiguration); /** @@ -645,6 +646,7 @@ public interface CamelContext extends StatefulService, RuntimeConfiguration { /** * Gets all the RestConfiguration's */ +@Deprecated Collection getRestConfigurations(); /**
[GitHub] [camel-k] rhn-support-kboone opened a new issue #1032: No interface for setting the number of pods on which an integration is to be deployed
rhn-support-kboone opened a new issue #1032: No interface for setting the number of pods on which an integration is to be deployed URL: https://github.com/apache/camel-k/issues/1032 Camel K exposes an interface for setting the affinities of multiple integration pods with physical nodes on OpenShift/Kubernetes. However, there is no interface for controlling the number of pods assigned to a specific integration in the first place. A work-around is to do "oc edit it [integration]" or "kubectl edit it [integration]" and add the section ".spec.replicas" with the desired value. Note that this entry will not exist initially, and must be created. 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 #350: Upgrade to quarkus 0.27.0
asf-ci commented on issue #350: Upgrade to quarkus 0.27.0 URL: https://github.com/apache/camel-quarkus/pull/350#issuecomment-547877127 Refer to this link for build results (access rights to CI server needed): https://builds.apache.org/job/camel-quarkus-pr/360/ 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 #180: chore(deps): bump checkstyle from 7.6.1 to 8.18
lburgazzoli commented on issue #180: chore(deps): bump checkstyle from 7.6.1 to 8.18 URL: https://github.com/apache/camel-k-runtime/pull/180#issuecomment-547887680 @dependabot ignore this major version 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] dependabot[bot] closed pull request #180: chore(deps): bump checkstyle from 7.6.1 to 8.18
dependabot[bot] closed pull request #180: chore(deps): bump checkstyle from 7.6.1 to 8.18 URL: https://github.com/apache/camel-k-runtime/pull/180 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] dependabot[bot] commented on issue #180: chore(deps): bump checkstyle from 7.6.1 to 8.18
dependabot[bot] commented on issue #180: chore(deps): bump checkstyle from 7.6.1 to 8.18 URL: https://github.com/apache/camel-k-runtime/pull/180#issuecomment-547887706 OK, I won't notify you about version 8.x.x again, unless you re-open this PR or update to a 8.x.x release yourself. 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] dhartford commented on issue #248: Create a Camel Netty TCP extension
dhartford commented on issue #248: Create a Camel Netty TCP extension URL: https://github.com/apache/camel-quarkus/issues/248#issuecomment-547940436 Alright, native tests pass, adding the the reflective classes with an additional dependency camel-endpointdsl was the solution. 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] dhartford opened a new pull request #353: Camel quarkus netty
dhartford opened a new pull request #353: Camel quarkus netty URL: https://github.com/apache/camel-quarkus/pull/353 https://github.com/apache/camel-quarkus/issues/248 initial support for camel-quarkus-netty 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] dependabot[bot] opened a new pull request #180: chore(deps): bump checkstyle from 7.6.1 to 8.18
dependabot[bot] opened a new pull request #180: chore(deps): bump checkstyle from 7.6.1 to 8.18 URL: https://github.com/apache/camel-k-runtime/pull/180 Bumps [checkstyle](https://github.com/checkstyle/checkstyle) from 7.6.1 to 8.18. Release notes *Sourced from [checkstyle's releases](https://github.com/checkstyle/checkstyle/releases).* > ## checkstyle-8.18 > https://checkstyle.org/releasenotes.html#Release_8.18 > > ## checkstyle-8.17 > https://checkstyle.org/releasenotes.html#Release_8.17 > > ## checkstyle-8.16 > https://checkstyle.org/releasenotes.html#Release_8.16 > > ## checkstyle-8.15 > https://checkstyle.org/releasenotes.html#Release_8.15 > > ## checkstyle-8.14 > http://checkstyle.sourceforge.net/releasenotes.html#Release_8.14 > > ## checkstyle-8.13 > http://checkstyle.sourceforge.net/releasenotes.html#Release_8.13 > > ## checkstyle-8.12 > http://checkstyle.sourceforge.net/releasenotes.html#Release_8.12 > > ## checkstyle-8.11 > http://checkstyle.sourceforge.net/releasenotes.html#Release_8.11 > > ## checkstyle-8.10.1 > http://checkstyle.sourceforge.net/releasenotes.html#Release_8.10.1 > > ## checkstyle-8.10 > http://checkstyle.sourceforge.net/releasenotes.html#Release_8.10 > > ## checkstyle-8.9 > http://checkstyle.sourceforge.net/releasenotes.html#Release_8.9 > > ## checkstyle-8.8 > http://checkstyle.sourceforge.net/releasenotes.html#Release_8.8 > > Maven artifacts: > http://repo1.maven.org/maven2/com/puppycrawl/tools/checkstyle/8.8/ > > ## checkstyle-8.7 > http://checkstyle.sourceforge.net/releasenotes.html#Release_8.7 > > ## checkstyle-8.6 > http://checkstyle.sourceforge.net/releasenotes.html#Release_8.6 > > ## checkstyle-8.5 > http://checkstyle.sourceforge.net/releasenotes.html#Release_8.5 > > ## checkstyle-8.4 > http://checkstyle.sourceforge.net/releasenotes.html#Release_8.4 > ... (truncated) Commits - [`252d29b`](https://github.com/checkstyle/checkstyle/commit/252d29bdb6eb1984e115dc3f77114ec2ec7d10e7) [maven-release-plugin] prepare release checkstyle-8.18 - [`385b64a`](https://github.com/checkstyle/checkstyle/commit/385b64a6590616131869a03278a671fc7b86d1c8) minor: fix typo in comment - [`e77ec1c`](https://github.com/checkstyle/checkstyle/commit/e77ec1cf3e453ba90bbc5573f69355d24d360f28) doc: add releasenotes 8.18 - [`180b4fe`](https://github.com/checkstyle/checkstyle/commit/180b4fe37a2249d4489d584505f2b7b3ab162ec6) Issue [#6474](https://github-redirect.dependabot.com/checkstyle/checkstyle/issues/6474): disable external dtd load by default - [`59413ca`](https://github.com/checkstyle/checkstyle/commit/59413cadd7518f1e4f15bb1a70b89cadb6343e7d) minor: changed powermock tests to normal tests for TranslationCheck - [`906adae`](https://github.com/checkstyle/checkstyle/commit/906adae57d549bef09d8839f19376053b041f7e7) Issue [#4814](https://github-redirect.dependabot.com/checkstyle/checkstyle/issues/4814): added try/catch to setting up TreeWalker children - [`4b8e508`](https://github.com/checkstyle/checkstyle/commit/4b8e5086a4994f18dff9e0cad874f922f1febd39) minor: changed powermock tests to normal tests - [`86dcb80`](https://github.com/checkstyle/checkstyle/commit/86dcb80041a872232b108a51cb502da082f3c640) Issue [#6439](https://github-redirect.dependabot.com/checkstyle/checkstyle/issues/6439): move powermock tests away from the normal tests - [`96385e2`](https://github.com/checkstyle/checkstyle/commit/96385e2871cd1fc2b7b8af1b9f2d3482ec8c7791) Issue [#6440](https://github-redirect.dependabot.com/checkstyle/checkstyle/issues/6440): AnnotationLocation: named parameters must be considered parameters - [`404143c`](https://github.com/checkstyle/checkstyle/commit/404143cc4907513e87a5977883336814a202c15f) Issue [#6301](https://github-redirect.dependabot.com/checkstyle/checkstyle/issues/6301): ArrayTypeStyle support for method definitions - Additional commits viewable in [compare view](https://github.com/checkstyle/checkstyle/compare/checkstyle-7.6.1...checkstyle-8.18) [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=com.puppycrawl.tools:checkstyle=maven=7.6.1=8.18)](https://help.github.com/articles/configuring-automated-security-fixes) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- Dependabot commands and options You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it -
[camel-k-runtime] branch dependabot/maven/com.puppycrawl.tools-checkstyle-8.18 created (now e2c3475)
This is an automated email from the ASF dual-hosted git repository. github-bot pushed a change to branch dependabot/maven/com.puppycrawl.tools-checkstyle-8.18 in repository https://gitbox.apache.org/repos/asf/camel-k-runtime.git. at e2c3475 chore(deps): bump checkstyle from 7.6.1 to 8.18 No new revisions were added by this update.
[GitHub] [camel-quarkus] oscerd commented on a change in pull request #353: Camel quarkus netty
oscerd commented on a change in pull request #353: Camel quarkus netty URL: https://github.com/apache/camel-quarkus/pull/353#discussion_r340669467 ## File path: integration-tests/netty/src/main/java/org/apache/camel/quarkus/component/netty/CamelRoute.java ## @@ -0,0 +1,43 @@ +/* + * 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. + */ +package org.apache.camel.quarkus.component.netty; + +import org.apache.camel.Exchange; +import org.apache.camel.Processor; +import org.apache.camel.builder.RouteBuilder; + +public class CamelRoute extends RouteBuilder { + +@Override +public void configure() { + +//simulate https://github.com/apache/camel/blob/master/components/camel-netty/src/test/java/org/apache/camel/component/netty/NettyTCPSyncTest.java Review comment: I think this reference can be removed. 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-runtime] 06/09: feat(quarkus): Add runtime provider information to generated catalog
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-runtime.git commit a4989945bb7d0cc411f542b979b38a46a88c2c1b Author: Antonin Stefanutti AuthorDate: Tue Oct 29 16:50:23 2019 +0100 feat(quarkus): Add runtime provider information to generated catalog --- .../camel/k/tooling/maven/GenerateCatalogMojo.java | 55 +++--- .../tooling/maven/model/crd/CamelCatalogSpec.java | 5 +- ...atalogSpec.java => QuarkusRuntimeProvider.java} | 21 +++-- ...{CamelCatalogSpec.java => RuntimeProvider.java} | 20 +++- 4 files changed, 53 insertions(+), 48 deletions(-) diff --git a/tooling/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/GenerateCatalogMojo.java b/tooling/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/GenerateCatalogMojo.java index ddf68bd..a103120 100644 --- a/tooling/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/GenerateCatalogMojo.java +++ b/tooling/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/GenerateCatalogMojo.java @@ -37,6 +37,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.dataformat.yaml.YAMLFactory; import com.fasterxml.jackson.dataformat.yaml.YAMLGenerator; +import com.fasterxml.jackson.datatype.jdk8.Jdk8Module; + import org.apache.camel.catalog.DefaultCamelCatalog; import org.apache.camel.k.tooling.maven.model.CamelArtifact; import org.apache.camel.k.tooling.maven.model.CatalogComponentDefinition; @@ -46,6 +48,8 @@ import org.apache.camel.k.tooling.maven.model.CatalogProcessor; import org.apache.camel.k.tooling.maven.model.CatalogSupport; import org.apache.camel.k.tooling.maven.model.crd.CamelCatalog; import org.apache.camel.k.tooling.maven.model.crd.CamelCatalogSpec; +import org.apache.camel.k.tooling.maven.model.crd.QuarkusRuntimeProvider; +import org.apache.camel.k.tooling.maven.model.crd.RuntimeProvider; import org.apache.camel.k.tooling.maven.model.k8s.ObjectMeta; import org.apache.commons.lang3.StringUtils; import org.apache.maven.plugin.AbstractMojo; @@ -74,7 +78,7 @@ public class GenerateCatalogMojo extends AbstractMojo { @Parameter(property = "catalog.file", defaultValue = "camel-catalog-${camel.version}-${runtime.version}.yaml") private String outputFile; -@Parameter(property = "catalog.runtime", defaultValue = "default") +@Parameter(property = "catalog.runtime", defaultValue = "") private String runtime; // @@ -99,14 +103,13 @@ public class GenerateCatalogMojo extends AbstractMojo { final SortedMap artifacts = new TreeMap<>(); final org.apache.camel.catalog.CamelCatalog catalog = new DefaultCamelCatalog(); -String version = ""; +if (runtime == null) { +runtime = ""; +} switch (runtime) { case "quarkus": catalog.setRuntimeProvider(new org.apache.camel.catalog.quarkus.QuarkusRuntimeProvider()); -version = getVersionFor("/META-INF/maven/org.apache.camel.quarkus/camel-catalog-quarkus/pom.properties"); break; -case "default": -version = catalog.getCatalogVersion(); case "": break; default: @@ -152,20 +155,35 @@ public class GenerateCatalogMojo extends AbstractMojo { getRuntimeVersion().toLowerCase() ); -CamelCatalog cr = new CamelCatalog.Builder() -.metadata(new ObjectMeta.Builder() -.name(catalogName) -.putLabels("app", "camel-k") -.putLabels("camel.apache.org/catalog.version", version) -.putLabels("camel.apache.org/catalog.loader.version", catalog.getLoadedVersion()) -.putLabels("camel.apache.org/runtime.provider", runtime.length() == 0 ? "default" : runtime) -.putLabels("camel.apache.org/runtime.version", getRuntimeVersion()) -.build()) -.spec(new CamelCatalogSpec.Builder() -.version(catalog.getCatalogVersion()) -.runtimeVersion(getRuntimeVersion()) -.artifacts(artifacts) +ObjectMeta.Builder labels = new ObjectMeta.Builder() +.name(catalogName) +.putLabels("app", "camel-k") +.putLabels("camel.apache.org/catalog.version", catalog.getCatalogVersion()) +.putLabels("camel.apache.org/catalog.loader.version", catalog.getLoadedVersion()) +.putLabels("camel.apache.org/runtime.version", getRuntimeVersion()); +if (runtime != "") { +
[camel-k-runtime] 02/09: update to camel-quarkus 0.3.0
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-runtime.git commit e1068da68db0f3d95353d01c5a9599f91fa6cddd Author: lburgazzoli AuthorDate: Sat Oct 26 00:56:45 2019 +0200 update to camel-quarkus 0.3.0 --- camel-k-loader-groovy/pom.xml | 15 -- camel-k-loader-java/pom.xml| 5 - camel-k-loader-js/pom.xml | 5 - camel-k-loader-knative/pom.xml | 5 - camel-k-loader-kotlin/pom.xml | 5 - camel-k-loader-xml/pom.xml | 5 - camel-k-loader-yaml/pom.xml| 5 - .../quarkus/deployment/DeploymentProcessor.java| 80 +- .../deployment/devmode/HotDeploymentProcessor.java | 7 +- camel-k-quarkus/camel-k-quarkus-core/it/pom.xml| 3 +- .../it/src/main/resources/application.properties | 9 +- .../k/core/quarkus/RuntimeListenerAdapter.java | 169 + .../camel/k/core/quarkus/RuntimeRecorder.java} | 15 +- .../camel-k-quarkus-loader-js/it/pom.xml | 3 +- .../it/src/main/resources/application.properties | 9 +- .../camel-k-quarkus-loader-xml/deployment/pom.xml | 4 + .../camel-k-quarkus-loader-xml/it/pom.xml | 3 +- .../it/src/main/resources/application.properties | 11 -- .../camel-k-quarkus-loader-xml/runtime/pom.xml | 2 +- .../camel-k-quarkus-loader-yaml/it/pom.xml | 3 +- .../it/src/main/resources/application.properties | 8 +- .../apache/camel/k/quarkus/ApplicationRuntime.java | 105 - .../ApplicationRuntimeConfigSourceProvider.java| 2 +- camel-k-runtime-core/pom.xml | 5 - .../src/main/java/org/apache/camel/k/Runtime.java | 6 +- .../apache/camel/k/support/PropertiesSupport.java | 15 +- .../org/apache/camel/k/support/RuntimeSupport.java | 18 +-- .../apache/camel/k/support/RuntimeSupportTest.java | 20 +-- camel-k-runtime-health/pom.xml | 5 - camel-k-runtime-knative/pom.xml| 6 - camel-k-runtime-main/pom.xml | 5 - .../java/org/apache/camel/k/main/Application.java | 4 +- .../apache/camel/k/main/ApplicationRuntime.java| 77 +++--- camel-k-runtime-servlet/pom.xml| 5 - .../knative/spi/CloudEventTypeConverter.java | 2 +- camel-knative/camel-knative-http/pom.xml | 5 - camel-knative/camel-knative/pom.xml| 5 - .../src/main/resources/application.properties | 12 +- .../src/main/resources/application.properties | 7 +- .../camel-k-runtime-example-quarkus-js/pom.xml | 5 +- .../src/main/resources/application.properties | 16 +- .../pom.xml| 5 +- .../src/main/resources/application.properties | 9 +- .../camel-k-runtime-example-quarkus-yaml/pom.xml | 5 +- .../src/main/resources/application.properties | 16 +- .../src/main/resources/application.properties | 14 +- examples/camel-k-runtime-example-yaml/pom.xml | 2 +- .../resources/{ => conf}/application.properties| 7 +- pom.xml| 44 +- tooling/camel-k-maven-plugin/pom.xml | 2 +- .../maven/processors/CatalogProcessor3x.java | 2 - 51 files changed, 445 insertions(+), 357 deletions(-) diff --git a/camel-k-loader-groovy/pom.xml b/camel-k-loader-groovy/pom.xml index 2cb5d6f..7e2210a 100644 --- a/camel-k-loader-groovy/pom.xml +++ b/camel-k-loader-groovy/pom.xml @@ -94,21 +94,6 @@ camel-direct test - -org.apache.camel -camel-properties -test - - -org.apache.camel -camel-bean -test - - -org.apache.camel -camel-jackson -test - diff --git a/camel-k-loader-java/pom.xml b/camel-k-loader-java/pom.xml index 11dccea..a20fc92 100644 --- a/camel-k-loader-java/pom.xml +++ b/camel-k-loader-java/pom.xml @@ -88,11 +88,6 @@ camel-direct test - -org.apache.camel -camel-properties -test - org.junit.jupiter diff --git a/camel-k-loader-js/pom.xml b/camel-k-loader-js/pom.xml index 488b7a0..67f3e0a 100644 --- a/camel-k-loader-js/pom.xml +++ b/camel-k-loader-js/pom.xml @@ -84,11 +84,6 @@ org.apache.camel -camel-properties -test - - -org.apache.camel camel-main test diff --git a/camel-k-loader-knative/pom.xml b/camel-k-loader-knative/pom.xml index 00462e0..840d2cb 100644 ---
[camel] branch master updated: CAMEL-13233: Add trace logging for absolute path in file consumer
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 28d019c CAMEL-13233: Add trace logging for absolute path in file consumer 28d019c is described below commit 28d019ce694079d30cc0fda80a1272ebb3af2f2a Author: Claus Ibsen AuthorDate: Wed Oct 30 13:13:28 2019 +0100 CAMEL-13233: Add trace logging for absolute path in file consumer --- .../src/main/java/org/apache/camel/component/file/FileConsumer.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/camel-file/src/main/java/org/apache/camel/component/file/FileConsumer.java b/components/camel-file/src/main/java/org/apache/camel/component/file/FileConsumer.java index 1634eee..220ba4f 100644 --- a/components/camel-file/src/main/java/org/apache/camel/component/file/FileConsumer.java +++ b/components/camel-file/src/main/java/org/apache/camel/component/file/FileConsumer.java @@ -67,7 +67,9 @@ public class FileConsumer extends GenericFileConsumer { return true; } -log.trace("Polling directory: {}", directory.getPath()); +if (log.isTraceEnabled()) { +log.trace("Polling directory: {}, absolute path: {}", directory.getPath(), directory.getAbsolutePath()); +} File[] dirFiles = directory.listFiles(); if (dirFiles == null || dirFiles.length == 0) { // no files in this directory to poll
[GitHub] [camel-k-runtime] astefanutti closed issue #149: switch to camel main for quarkus related bits
astefanutti closed issue #149: switch to camel main for quarkus related bits URL: https://github.com/apache/camel-k-runtime/issues/149 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-runtime] 08/09: feat(quarkus): Better catalog name with runtime provider
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-runtime.git commit 5351275f221ec31cb9f2db18583a6e06df1305c8 Author: Antonin Stefanutti AuthorDate: Tue Oct 29 18:47:00 2019 +0100 feat(quarkus): Better catalog name with runtime provider --- .../camel/k/tooling/maven/GenerateCatalogMojo.java | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/tooling/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/GenerateCatalogMojo.java b/tooling/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/GenerateCatalogMojo.java index a103120..e536ba5 100644 --- a/tooling/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/GenerateCatalogMojo.java +++ b/tooling/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/GenerateCatalogMojo.java @@ -150,10 +150,19 @@ public class GenerateCatalogMojo extends AbstractMojo { // artifacts: // try (Writer writer = Files.newBufferedWriter(output, StandardCharsets.UTF_8)) { -String catalogName = String.format("camel-catalog-%s-%s", -catalog.getCatalogVersion().toLowerCase(), -getRuntimeVersion().toLowerCase() -); +String catalogName; +if ("quarkus".equals(runtime)) { +catalogName = String.format("camel-%s-catalog-%s-%s", +runtime, + getVersionFor("/META-INF/maven/org.apache.camel.quarkus/camel-catalog-quarkus/pom.properties"), +getRuntimeVersion().toLowerCase() +); +} else { +catalogName = String.format("camel-catalog-%s-%s", +catalog.getCatalogVersion().toLowerCase(), +getRuntimeVersion().toLowerCase() +); +} ObjectMeta.Builder labels = new ObjectMeta.Builder() .name(catalogName)
[camel-k-runtime] branch master updated (f4c290e -> a460fc8)
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-runtime.git. from f4c290e Merge pull request #178 from lburgazzoli/github-177 new 5a6669e Add support for Quarkus runtime provider in catalog generator new e1068da update to camel-quarkus 0.3.0 new 951b421 chore(deps): update jackson to v2.10.0 new fea81ff chore(deps): update vertx to v3.8.3 new f2e8f74 chore(deps): update assertj to v3.14.0 new a498994 feat(quarkus): Add runtime provider information to generated catalog new 46109b1 Fix Maven dependencies issues new 5351275 feat(quarkus): Better catalog name with runtime provider new a460fc8 feat(quarkus): Fix CS The 9 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-loader-groovy/pom.xml | 5 - camel-k-loader-java/pom.xml| 5 - camel-k-loader-js/pom.xml | 5 - camel-k-loader-knative/pom.xml | 5 - camel-k-loader-kotlin/pom.xml | 5 - camel-k-loader-xml/pom.xml | 5 - camel-k-loader-yaml/pom.xml| 5 - .../quarkus/deployment/DeploymentProcessor.java| 80 +- .../deployment/devmode/HotDeploymentProcessor.java | 7 +- camel-k-quarkus/camel-k-quarkus-core/it/pom.xml| 3 +- .../it/src/main/resources/application.properties | 9 +- .../k/core/quarkus/RuntimeListenerAdapter.java | 169 + .../camel/k/core/quarkus/RuntimeRecorder.java | 8 +- .../camel-k-quarkus-loader-js/it/pom.xml | 3 +- .../it/src/main/resources/application.properties | 9 +- .../camel-k-quarkus-loader-xml/deployment/pom.xml | 4 + .../quarkus/deployment/DeploymentProcessor.java| 30 .../camel-k-quarkus-loader-xml/it/pom.xml | 3 +- .../it/src/main/resources/application.properties | 11 -- .../camel-k-quarkus-loader-xml/runtime/pom.xml | 2 +- .../camel-k-quarkus-loader-yaml/it/pom.xml | 3 +- .../it/src/main/resources/application.properties | 8 +- .../apache/camel/k/quarkus/ApplicationRuntime.java | 105 - .../ApplicationRuntimeConfigSourceProvider.java| 2 +- camel-k-runtime-core/pom.xml | 5 - .../src/main/java/org/apache/camel/k/Runtime.java | 6 +- .../apache/camel/k/support/PropertiesSupport.java | 15 +- .../org/apache/camel/k/support/RuntimeSupport.java | 18 +-- .../apache/camel/k/support/RuntimeSupportTest.java | 20 +-- camel-k-runtime-health/pom.xml | 5 - camel-k-runtime-knative/pom.xml| 6 - camel-k-runtime-main/pom.xml | 5 - .../java/org/apache/camel/k/main/Application.java | 4 +- .../apache/camel/k/main/ApplicationRuntime.java| 77 +++--- camel-k-runtime-servlet/pom.xml| 5 - camel-k-runtime-webhook/pom.xml| 10 -- .../knative/spi/CloudEventTypeConverter.java | 2 +- camel-knative/camel-knative-http/pom.xml | 5 - camel-knative/camel-knative/pom.xml| 5 - .../src/main/resources/application.properties | 12 +- .../src/main/resources/application.properties | 7 +- .../camel-k-runtime-example-quarkus-js/pom.xml | 5 +- .../src/main/resources/application.properties | 16 +- .../pom.xml| 5 +- .../src/main/resources/application.properties | 9 +- .../camel-k-runtime-example-quarkus-yaml/pom.xml | 5 +- .../src/main/resources/application.properties | 16 +- .../src/main/resources/application.properties | 14 +- examples/camel-k-runtime-example-yaml/pom.xml | 2 +- .../resources/{ => conf}/application.properties| 7 +- pom.xml| 49 +- tooling/camel-k-maven-plugin/pom.xml | 6 + .../camel/k/tooling/maven/GenerateCatalogMojo.java | 88 --- .../tooling/maven/model/crd/CamelCatalogSpec.java | 5 +- .../QuarkusRuntimeProvider.java} | 21 +-- .../ObjectMeta.java => crd/RuntimeProvider.java} | 20 +-- .../maven/processors/CatalogProcessor3x.java | 2 - 57 files changed, 541 insertions(+), 427 deletions(-) create mode 100644 camel-k-quarkus/camel-k-quarkus-core/runtime/src/main/java/org/apache/camel/k/core/quarkus/RuntimeListenerAdapter.java copy camel-k-runtime-webhook/src/main/java/org/apache/camel/k/webhook/WebhookAction.java => camel-k-quarkus/camel-k-quarkus-core/runtime/src/main/java/org/apache/camel/k/core/quarkus/RuntimeRecorder.java (86%)
[camel-k-runtime] 07/09: Fix Maven dependencies issues
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-runtime.git commit 46109b19ad9041bfee3e28231ab29109b5ad8ae8 Author: Antonin Stefanutti AuthorDate: Tue Oct 29 18:36:08 2019 +0100 Fix Maven dependencies issues --- camel-k-loader-groovy/pom.xml | 10 ++ camel-k-runtime-webhook/pom.xml | 10 -- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/camel-k-loader-groovy/pom.xml b/camel-k-loader-groovy/pom.xml index 7e2210a..1f197ae 100644 --- a/camel-k-loader-groovy/pom.xml +++ b/camel-k-loader-groovy/pom.xml @@ -94,6 +94,16 @@ camel-direct test + +org.apache.camel +camel-bean +test + + +org.apache.camel +camel-jackson +test + diff --git a/camel-k-runtime-webhook/pom.xml b/camel-k-runtime-webhook/pom.xml index 1270d1a..f573e13 100644 --- a/camel-k-runtime-webhook/pom.xml +++ b/camel-k-runtime-webhook/pom.xml @@ -67,11 +67,6 @@ org.apache.camel -camel-properties -test - - -org.apache.camel camel-log test @@ -92,11 +87,6 @@ org.apache.camel -camel-properties -test - - -org.apache.camel camel-main test
[GitHub] [camel-quarkus] lburgazzoli closed pull request #344: WIP: Move to Quarkus 0.27+ yaml descriptor
lburgazzoli closed pull request #344: WIP: Move to Quarkus 0.27+ yaml descriptor URL: https://github.com/apache/camel-quarkus/pull/344 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] astefanutti merged pull request #167: Camel Quarkus 0.3.0 support
astefanutti merged pull request #167: Camel Quarkus 0.3.0 support URL: https://github.com/apache/camel-k-runtime/pull/167 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-runtime] 04/09: chore(deps): update vertx to v3.8.3
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-runtime.git commit fea81ff7fec7089ff5cde60936774c6c88a4b90b Author: lburgazzoli AuthorDate: Sun Oct 27 20:09:18 2019 +0100 chore(deps): update vertx to v3.8.3 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index b15cef0..1f9ad0a 100644 --- a/pom.xml +++ b/pom.xml @@ -57,7 +57,7 @@ 2.8.0 3.1.0 1.4.26.Final -3.8.1 +3.8.3 19.2.0.1 0.26.1 2.1.1.Final
[GitHub] [camel-quarkus] lburgazzoli commented on issue #344: WIP: Move to Quarkus 0.27+ yaml descriptor
lburgazzoli commented on issue #344: WIP: Move to Quarkus 0.27+ yaml descriptor URL: https://github.com/apache/camel-quarkus/pull/344#issuecomment-547872344 done by #350 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] astefanutti closed issue #148: add quarkus information in catalog generator
astefanutti closed issue #148: add quarkus information in catalog generator URL: https://github.com/apache/camel-k-runtime/issues/148 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-runtime] 01/09: Add support for Quarkus runtime provider in catalog generator
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-runtime.git commit 5a6669ed35a82c710be2c11a774d72c22c041df9 Author: Antonin Stefanutti AuthorDate: Thu Oct 17 17:50:52 2019 +0200 Add support for Quarkus runtime provider in catalog generator --- pom.xml| 1 + tooling/camel-k-maven-plugin/pom.xml | 6 + .../camel/k/tooling/maven/GenerateCatalogMojo.java | 30 +- 3 files changed, 31 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index 235df17..0f300ba 100644 --- a/pom.xml +++ b/pom.xml @@ -38,6 +38,7 @@ 3.0.0-RC1 0.2.0 ${camel.version} +0.2.1-SNAPSHOT 5.5.2 0.9.12 2.6 diff --git a/tooling/camel-k-maven-plugin/pom.xml b/tooling/camel-k-maven-plugin/pom.xml index 3ef5514..37aa2f0 100644 --- a/tooling/camel-k-maven-plugin/pom.xml +++ b/tooling/camel-k-maven-plugin/pom.xml @@ -97,6 +97,12 @@ provided + org.apache.camel.quarkus + camel-catalog-quarkus + ${quarkus.catalog.version} + provided + + org.yaml snakeyaml ${snakeyaml.version} diff --git a/tooling/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/GenerateCatalogMojo.java b/tooling/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/GenerateCatalogMojo.java index 95354ea..ddf68bd 100644 --- a/tooling/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/GenerateCatalogMojo.java +++ b/tooling/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/GenerateCatalogMojo.java @@ -74,6 +74,9 @@ public class GenerateCatalogMojo extends AbstractMojo { @Parameter(property = "catalog.file", defaultValue = "camel-catalog-${camel.version}-${runtime.version}.yaml") private String outputFile; +@Parameter(property = "catalog.runtime", defaultValue = "default") +private String runtime; + // // // @@ -96,6 +99,19 @@ public class GenerateCatalogMojo extends AbstractMojo { final SortedMap artifacts = new TreeMap<>(); final org.apache.camel.catalog.CamelCatalog catalog = new DefaultCamelCatalog(); +String version = ""; +switch (runtime) { +case "quarkus": +catalog.setRuntimeProvider(new org.apache.camel.catalog.quarkus.QuarkusRuntimeProvider()); +version = getVersionFor("/META-INF/maven/org.apache.camel.quarkus/camel-catalog-quarkus/pom.properties"); +break; +case "default": +version = catalog.getCatalogVersion(); +case "": +break; +default: +throw new IllegalArgumentException("catalog.runtime parameter value [" + runtime + "] is not supported!"); +} try { processComponents(catalog, artifacts); @@ -140,8 +156,9 @@ public class GenerateCatalogMojo extends AbstractMojo { .metadata(new ObjectMeta.Builder() .name(catalogName) .putLabels("app", "camel-k") -.putLabels("camel.apache.org/catalog.version", catalog.getCatalogVersion()) +.putLabels("camel.apache.org/catalog.version", version) .putLabels("camel.apache.org/catalog.loader.version", catalog.getLoadedVersion()) +.putLabels("camel.apache.org/runtime.provider", runtime.length() == 0 ? "default" : runtime) .putLabels("camel.apache.org/runtime.version", getRuntimeVersion()) .build()) .spec(new CamelCatalogSpec.Builder() @@ -251,15 +268,16 @@ public class GenerateCatalogMojo extends AbstractMojo { } } -public synchronized String getRuntimeVersion() { +private String getRuntimeVersion() { +return getVersionFor("/META-INF/maven/org.apache.camel.k/camel-k-maven-plugin/pom.properties"); +} + +private synchronized String getVersionFor(String path) { String version = null; // try to load from maven properties first try { - -InputStream is = getClass().getResourceAsStream( - "/META-INF/maven/org.apache.camel.k/camel-k-maven-plugin/pom.properties" -); +InputStream is = getClass().getResourceAsStream(path); if (is != null) { Properties p = new Properties();
[camel-k-runtime] 09/09: feat(quarkus): Fix CS
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-runtime.git commit a460fc8d5f6be0db419fb4607a9653af57a57686 Author: Antonin Stefanutti AuthorDate: Wed Oct 30 11:40:08 2019 +0100 feat(quarkus): Fix CS --- .../camel/k/tooling/maven/GenerateCatalogMojo.java | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tooling/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/GenerateCatalogMojo.java b/tooling/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/GenerateCatalogMojo.java index e536ba5..ad91b27 100644 --- a/tooling/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/GenerateCatalogMojo.java +++ b/tooling/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/GenerateCatalogMojo.java @@ -107,13 +107,13 @@ public class GenerateCatalogMojo extends AbstractMojo { runtime = ""; } switch (runtime) { -case "quarkus": -catalog.setRuntimeProvider(new org.apache.camel.catalog.quarkus.QuarkusRuntimeProvider()); -break; -case "": -break; -default: -throw new IllegalArgumentException("catalog.runtime parameter value [" + runtime + "] is not supported!"); +case "quarkus": +catalog.setRuntimeProvider(new org.apache.camel.catalog.quarkus.QuarkusRuntimeProvider()); +break; +case "": +break; +default: +throw new IllegalArgumentException("catalog.runtime parameter value [" + runtime + "] is not supported!"); } try { @@ -170,7 +170,7 @@ public class GenerateCatalogMojo extends AbstractMojo { .putLabels("camel.apache.org/catalog.version", catalog.getCatalogVersion()) .putLabels("camel.apache.org/catalog.loader.version", catalog.getLoadedVersion()) .putLabels("camel.apache.org/runtime.version", getRuntimeVersion()); -if (runtime != "") { +if (!"".equals(runtime)) { labels.putLabels("camel.apache.org/runtime.provider", runtime); }
[camel-k-runtime] 05/09: chore(deps): update assertj to v3.14.0
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-runtime.git commit f2e8f747a7251fabace8afb0f63537cc0e8914d9 Author: lburgazzoli AuthorDate: Sun Oct 27 20:09:51 2019 +0100 chore(deps): update assertj to v3.14.0 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 1f9ad0a..7314620 100644 --- a/pom.xml +++ b/pom.xml @@ -44,7 +44,7 @@ 3.9 4.4 1.7 -3.13.2 +3.14.0 2.12.1 1.7.28 2.5.8
[camel-k-runtime] 03/09: chore(deps): update jackson to v2.10.0
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-runtime.git commit 951b421f97a032802b64d42bda40d9591bffad0c Author: lburgazzoli AuthorDate: Sun Oct 27 20:02:40 2019 +0100 chore(deps): update jackson to v2.10.0 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 29d5638..b15cef0 100644 --- a/pom.xml +++ b/pom.xml @@ -51,7 +51,7 @@ 1.3.50 1.25 1.3-groovy-2.5 -2.9.10 +2.10.0 2.3.0 2.3.0.1 2.8.0
[camel-quarkus] annotated tag 0.3.1 created (now 3fad3ef)
This is an automated email from the ASF dual-hosted git repository. acosentino pushed a change to annotated tag 0.3.1 in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git. at 3fad3ef (tag) tagging 622458e1bbaf582344118b26dac579bfc2d68e1e (commit) replaces 0.3.0 by Andrea Cosentino on Wed Oct 30 13:56:49 2019 +0100 - Log - [maven-release-plugin] copy for tag 0.3.1 --- No new revisions were added by this update.
[camel-quarkus] branch master updated: [maven-release-plugin] prepare release 0.3.1
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-quarkus.git The following commit(s) were added to refs/heads/master by this push: new 622458e [maven-release-plugin] prepare release 0.3.1 622458e is described below commit 622458e1bbaf582344118b26dac579bfc2d68e1e Author: Andrea Cosentino AuthorDate: Wed Oct 30 13:56:33 2019 +0100 [maven-release-plugin] prepare release 0.3.1 --- catalog/camel-quarkus-catalog/pom.xml | 2 +- catalog/pom.xml| 2 +- docs/pom.xml | 2 +- examples/observability/pom.xml | 2 +- examples/pom.xml | 2 +- examples/rest-json/pom.xml | 2 +- examples/timer-log-xml/pom.xml | 2 +- examples/timer-log/pom.xml | 2 +- extensions/attachments/deployment/pom.xml | 2 +- extensions/attachments/pom.xml | 2 +- extensions/attachments/runtime/pom.xml | 2 +- extensions/aws-eks/deployment/pom.xml | 2 +- extensions/aws-eks/pom.xml | 2 +- extensions/aws-eks/runtime/pom.xml | 2 +- extensions/aws-s3/deployment/pom.xml | 2 +- extensions/aws-s3/pom.xml | 2 +- extensions/aws-s3/runtime/pom.xml | 2 +- extensions/aws-sns/deployment/pom.xml | 2 +- extensions/aws-sns/pom.xml | 2 +- extensions/aws-sns/runtime/pom.xml | 2 +- extensions/aws-sqs/deployment/pom.xml | 2 +- extensions/aws-sqs/pom.xml | 2 +- extensions/aws-sqs/runtime/pom.xml | 2 +- extensions/bean/deployment/pom.xml | 2 +- extensions/bean/pom.xml| 2 +- extensions/bean/runtime/pom.xml| 2 +- extensions/core-cloud/deployment/pom.xml | 2 +- extensions/core-cloud/pom.xml | 2 +- extensions/core-cloud/runtime/pom.xml | 2 +- extensions/core-xml/deployment/pom.xml | 2 +- extensions/core-xml/pom.xml| 2 +- extensions/core-xml/runtime/pom.xml| 2 +- extensions/core/deployment/pom.xml | 2 +- extensions/core/pom.xml| 2 +- extensions/core/runtime/pom.xml| 2 +- extensions/csv/deployment/pom.xml | 2 +- extensions/csv/pom.xml | 2 +- extensions/csv/runtime/pom.xml | 2 +- extensions/direct/deployment/pom.xml | 2 +- extensions/direct/pom.xml | 2 +- extensions/direct/runtime/pom.xml | 2 +- extensions/fhir/deployment/pom.xml | 2 +- extensions/fhir/pom.xml| 2 +- extensions/fhir/runtime/pom.xml| 2 +- extensions/http-common/deployment/pom.xml | 2 +- extensions/http-common/pom.xml | 2 +- extensions/http-common/runtime/pom.xml | 2 +- extensions/infinispan/deployment/pom.xml | 2 +- extensions/infinispan/pom.xml | 2 +- extensions/infinispan/runtime/pom.xml | 2 +- extensions/jackson/deployment/pom.xml | 2 +- extensions/jackson/pom.xml | 2 +- extensions/jackson/runtime/pom.xml | 2 +- extensions/jdbc/deployment/pom.xml | 2 +- extensions/jdbc/pom.xml| 2 +- extensions/jdbc/runtime/pom.xml| 2 +- extensions/log/deployment/pom.xml | 2 +- extensions/log/pom.xml | 2 +- extensions/log/runtime/pom.xml | 2 +- extensions/mail/deployment/pom.xml | 2 +- extensions/mail/pom.xml| 2 +- extensions/mail/runtime/pom.xml| 2 +- extensions/microprofile-health/deployment/pom.xml | 2 +- extensions/microprofile-health/pom.xml | 2 +- extensions/microprofile-health/runtime/pom.xml | 2 +- extensions/microprofile-metrics/deployment/pom.xml | 2 +- extensions/microprofile-metrics/pom.xml| 2 +- extensions/microprofile-metrics/runtime/pom.xml| 2 +- extensions/netty-http/deployment/pom.xml | 2 +- extensions/netty-http/pom.xml | 2 +- extensions/netty-http/runtime/pom.xml | 2 +- extensions/opentracing/deployment/pom.xml | 2 +- extensions/opentracing/pom.xml | 2 +- extensions/opentracing/runtime/pom.xml | 2 +- extensions/paho/deployment/pom.xml | 2 +- extensions/paho/pom.xml| 2 +-
[camel-quarkus] branch master updated: [maven-release-plugin] prepare for next development iteration
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-quarkus.git The following commit(s) were added to refs/heads/master by this push: new 7bb74e5 [maven-release-plugin] prepare for next development iteration 7bb74e5 is described below commit 7bb74e548a011228357a7e82347c9363c3eb3556 Author: Andrea Cosentino AuthorDate: Wed Oct 30 13:56:56 2019 +0100 [maven-release-plugin] prepare for next development iteration --- catalog/camel-quarkus-catalog/pom.xml | 2 +- catalog/pom.xml| 2 +- docs/pom.xml | 2 +- examples/observability/pom.xml | 2 +- examples/pom.xml | 2 +- examples/rest-json/pom.xml | 2 +- examples/timer-log-xml/pom.xml | 2 +- examples/timer-log/pom.xml | 2 +- extensions/attachments/deployment/pom.xml | 2 +- extensions/attachments/pom.xml | 2 +- extensions/attachments/runtime/pom.xml | 2 +- extensions/aws-eks/deployment/pom.xml | 2 +- extensions/aws-eks/pom.xml | 2 +- extensions/aws-eks/runtime/pom.xml | 2 +- extensions/aws-s3/deployment/pom.xml | 2 +- extensions/aws-s3/pom.xml | 2 +- extensions/aws-s3/runtime/pom.xml | 2 +- extensions/aws-sns/deployment/pom.xml | 2 +- extensions/aws-sns/pom.xml | 2 +- extensions/aws-sns/runtime/pom.xml | 2 +- extensions/aws-sqs/deployment/pom.xml | 2 +- extensions/aws-sqs/pom.xml | 2 +- extensions/aws-sqs/runtime/pom.xml | 2 +- extensions/bean/deployment/pom.xml | 2 +- extensions/bean/pom.xml| 2 +- extensions/bean/runtime/pom.xml| 2 +- extensions/core-cloud/deployment/pom.xml | 2 +- extensions/core-cloud/pom.xml | 2 +- extensions/core-cloud/runtime/pom.xml | 2 +- extensions/core-xml/deployment/pom.xml | 2 +- extensions/core-xml/pom.xml| 2 +- extensions/core-xml/runtime/pom.xml| 2 +- extensions/core/deployment/pom.xml | 2 +- extensions/core/pom.xml| 2 +- extensions/core/runtime/pom.xml| 2 +- extensions/csv/deployment/pom.xml | 2 +- extensions/csv/pom.xml | 2 +- extensions/csv/runtime/pom.xml | 2 +- extensions/direct/deployment/pom.xml | 2 +- extensions/direct/pom.xml | 2 +- extensions/direct/runtime/pom.xml | 2 +- extensions/fhir/deployment/pom.xml | 2 +- extensions/fhir/pom.xml| 2 +- extensions/fhir/runtime/pom.xml| 2 +- extensions/http-common/deployment/pom.xml | 2 +- extensions/http-common/pom.xml | 2 +- extensions/http-common/runtime/pom.xml | 2 +- extensions/infinispan/deployment/pom.xml | 2 +- extensions/infinispan/pom.xml | 2 +- extensions/infinispan/runtime/pom.xml | 2 +- extensions/jackson/deployment/pom.xml | 2 +- extensions/jackson/pom.xml | 2 +- extensions/jackson/runtime/pom.xml | 2 +- extensions/jdbc/deployment/pom.xml | 2 +- extensions/jdbc/pom.xml| 2 +- extensions/jdbc/runtime/pom.xml| 2 +- extensions/log/deployment/pom.xml | 2 +- extensions/log/pom.xml | 2 +- extensions/log/runtime/pom.xml | 2 +- extensions/mail/deployment/pom.xml | 2 +- extensions/mail/pom.xml| 2 +- extensions/mail/runtime/pom.xml| 2 +- extensions/microprofile-health/deployment/pom.xml | 2 +- extensions/microprofile-health/pom.xml | 2 +- extensions/microprofile-health/runtime/pom.xml | 2 +- extensions/microprofile-metrics/deployment/pom.xml | 2 +- extensions/microprofile-metrics/pom.xml| 2 +- extensions/microprofile-metrics/runtime/pom.xml| 2 +- extensions/netty-http/deployment/pom.xml | 2 +- extensions/netty-http/pom.xml | 2 +- extensions/netty-http/runtime/pom.xml | 2 +- extensions/opentracing/deployment/pom.xml | 2 +- extensions/opentracing/pom.xml | 2 +- extensions/opentracing/runtime/pom.xml | 2 +- extensions/paho/deployment/pom.xml | 2 +- extensions/paho/pom.xml
[GitHub] [camel-k] rhn-support-kboone opened a new issue #1033: Document, or provide examples for, TLS configuration on OpenShift
rhn-support-kboone opened a new issue #1033: Document, or provide examples for, TLS configuration on OpenShift URL: https://github.com/apache/camel-k/issues/1033 It is not very obvious how to configure a Camel-K integration for TLS support on OpenShift. This is particularly relevant for integrations that act as service endpoints, rather than making outbound requests -- these will be subject to the OpenShift router if the client is outside the immediate OpenShft namespace. The router can be configured to terminate TLS and do plaintext communication with the integration, and this might be appropriate for integrations that expose HTTP services. However, protocols other than HTTP will almost certainly need to use TLS pass-through, with routing information being derived from the TLS SNI header. This is because, once the TLS conversation is terminated, there is no longer an SNI header for the router to refer to, and protocols other than HTTP do not usually have an equivalent of the "Host:" header to use for routing. Pass-through is the recommendation for ActiveMQ/Artemis/Strimzi on OpenShift, for exactly this reason. It would be good to document how to set this up, and to ensure that it actually works. It's likely that examples will have to be given for specific Camel components, because there is little uniformity in Camel itself about how to handle TLS and certificate storage. 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: Remove Debezium MySQL dependencies from debezium parent (#3297)
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 1c2318d Remove Debezium MySQL dependencies from debezium parent (#3297) 1c2318d is described below commit 1c2318dea81c3668c23fb6873cd46ab07b9f0590 Author: Omar Al-Safi AuthorDate: Wed Oct 30 16:00:48 2019 +0100 Remove Debezium MySQL dependencies from debezium parent (#3297) Signed-off-by: Omar Al-Safi --- .../camel-debezium-common-component/pom.xml | 21 - 1 file changed, 21 deletions(-) diff --git a/components/camel-debezium-common/camel-debezium-common-component/pom.xml b/components/camel-debezium-common/camel-debezium-common-component/pom.xml index 3b912e3..308fa6f 100644 --- a/components/camel-debezium-common/camel-debezium-common-component/pom.xml +++ b/components/camel-debezium-common/camel-debezium-common-component/pom.xml @@ -33,27 +33,6 @@ Camel Debezium Common support - - - -io.debezium -debezium-connector-mysql -${debezium-version} - - -mysql -mysql-connector-java - - - - - -mysql -mysql-connector-java -${debezium-mysql-connector-version} -provided - - org.apache.camel
[GitHub] [camel-k-runtime] astefanutti commented on issue #167: Camel Quarkus 0.3.0 support
astefanutti commented on issue #167: Camel Quarkus 0.3.0 support URL: https://github.com/apache/camel-k-runtime/pull/167#issuecomment-547863682 I think this PR is ready to be reviewed and eventually merged. 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-Debezium: Ignore the camel-debezium-mysql Karaf test for the moment
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 The following commit(s) were added to refs/heads/master by this push: new 342fa92 Camel-Debezium: Ignore the camel-debezium-mysql Karaf test for the moment 342fa92 is described below commit 342fa92e7bb888cc4a8c081a503739224c9bf2a1 Author: Andrea Cosentino AuthorDate: Wed Oct 30 12:49:08 2019 +0100 Camel-Debezium: Ignore the camel-debezium-mysql Karaf test for the moment --- .../test/java/org/apache/camel/itest/karaf/CamelDebeziumMysqlTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelDebeziumMysqlTest.java b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelDebeziumMysqlTest.java index 167e2d0..0722aeb 100644 --- a/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelDebeziumMysqlTest.java +++ b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelDebeziumMysqlTest.java @@ -16,10 +16,12 @@ */ package org.apache.camel.itest.karaf; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.ops4j.pax.exam.junit.PaxExam; +@Ignore @RunWith(PaxExam.class) public class CamelDebeziumMysqlTest extends BaseKarafTest {
[camel] branch master updated: Upgrade Narayana to version 5.10.0.Final
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 The following commit(s) were added to refs/heads/master by this push: new b082337 Upgrade Narayana to version 5.10.0.Final b082337 is described below commit b0823375cc9203ae58a20e23a71e442fbe9a0c14 Author: Andrea Cosentino AuthorDate: Wed Oct 30 14:32:25 2019 +0100 Upgrade Narayana to version 5.10.0.Final --- parent/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parent/pom.xml b/parent/pom.xml index e6c0363..004d27a 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -473,7 +473,7 @@ 0.9.6_1 2.4.4.Final 3.5.2 -5.9.8.Final +5.10.0.Final 1.0.0.Beta4 1.0.0.RC4 0.4.0
[GitHub] [camel-k] rhn-support-kboone commented on issue #1032: No interface for setting the number of pods on which an integration is to be deployed
rhn-support-kboone commented on issue #1032: No interface for setting the number of pods on which an integration is to be deployed URL: https://github.com/apache/camel-k/issues/1032#issuecomment-547928498 I've just realized that if I change .spec.replicas using "oc edit it", the integration is no longer visible when I do "kamel get it". I don't know if that is significant or not. I can still use "oc" to manipulate the integration, it's just the kamel utility that doesn't seem to work. 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] oscerd commented on a change in pull request #353: Camel quarkus netty
oscerd commented on a change in pull request #353: Camel quarkus netty URL: https://github.com/apache/camel-quarkus/pull/353#discussion_r340668493 ## File path: docs/modules/ROOT/pages/list-of-camel-quarkus-extensions.adoc ## @@ -51,6 +51,9 @@ Number of Camel components: 25 in 21 JAR artifacts (0 deprecated) | xref:extensions/microprofile-metrics.adoc[MicroProfile Metrics] (camel-quarkus-microprofile-metrics) + `microprofile-metrics:metricType:metricName` | 0.2 | Camel metrics exposed with Eclipse MicroProfile Metrics +| link:https://camel.apache.org/components/latest/netty-component.html[Netty] (camel-quarkus-netty) + Review comment: This should be an xref pointing to the local docs in quarkus. 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] oscerd commented on a change in pull request #353: Camel quarkus netty
oscerd commented on a change in pull request #353: Camel quarkus netty URL: https://github.com/apache/camel-quarkus/pull/353#discussion_r340668632 ## File path: .gitignore ## @@ -33,3 +33,6 @@ nb-configuration.xml Review comment: This can be removed. 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-quarkus] 01/06: Update to quarkus 0.27.0
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-quarkus.git commit 7f25029c9dcccba786e1b3cd50d2bcd873469173 Author: lburgazzoli AuthorDate: Tue Oct 29 15:03:11 2019 +0100 Update to quarkus 0.27.0 --- build/create-extension-templates/IT.java | 4 ++-- .../org/acme/observability/ObservabilityIT.java| 4 ++-- .../test/java/org/acme/rest/json/RestJsonIT.java | 4 ++-- .../aws/eks/deployment/AwsEKSProcessor.java| 14 ++--- .../aws/s3/deployment/AwsS3Processor.java | 16 +++ .../aws/sns/deployment/AwsSNSProcessor.java| 14 ++--- .../aws/sqs/deployment/AwsSQSProcessor.java| 14 ++--- extensions/core-cloud/runtime/pom.xml | 6 ++ .../core/deployment/NativeImageProcessor.java | 11 +- .../component/fhir/deployment/FhirProcessor.java | 24 +++--- extensions/fhir/runtime/pom.xml| 4 extensions/http-common/runtime/pom.xml | 4 ++-- .../infinispan/deployment/InfinispanProcessor.java | 2 +- extensions/infinispan/runtime/pom.xml | 6 ++ extensions/jdbc/runtime/pom.xml| 4 ++-- .../component/mail/deployment/MailProcessor.java | 10 - .../deployment/OpenTracingProcessor.java | 7 +++ .../component/paho/deployment/PahoProcessor.java | 16 +++ .../component/pdf/deployment/PdfProcessor.java | 6 +++--- .../salesforce/deployment/SalesforceProcessor.java | 2 +- .../component/slack/deployment/SlackProcessor.java | 6 +++--- .../jetty/deployment/JettySupportProcessor.java| 2 +- .../xml/deployment/XmlSupportProcessor.java| 2 +- .../deployment/XStreamSupportProcessor.java| 2 +- .../twitter/deployment/TwitterProcessor.java | 2 +- .../camel/quarkus/component/bean/BeanITCase.java | 4 ++-- .../org/apache/camel/quarkus/core/CamelITCase.java | 4 ++-- .../org/apache/camel/quarkus/core/CamelITCase.java | 4 ++-- .../camel/quarkus/component/csv/it/CsvIT.java | 4 ++-- .../camel/quarkus/component/fhir/it/FhirIT.java| 5 ++--- integration-tests/infinispan/pom.xml | 6 ++ .../quarkus/component/infinispan/CamelTCase.java | 4 ++-- .../quarkus/component/jackson/JacksonITCase.java | 4 ++-- .../camel/quarkus/component/jdbc/CamelJdbcIT.java | 4 ++-- .../camel/quarkus/component/mail/MailITCase.java | 4 ++-- .../health/it/MicroprofileHealthIT.java| 4 ++-- .../metrics/it/MicroprofileMetricsIT.java | 4 ++-- .../quarkus/component/netty/http/CamelIT.java | 4 ++-- .../component/opentracing/it/OpenTracingIT.java| 4 ++-- .../camel/quarkus/component/paho/it/PahoIT.java| 4 ++-- .../camel/quarkus/component/pdf/it/PdfIT.java | 4 ++-- .../http/server/it/PlatformHttpEngineIT.java | 4 ++-- .../component/http/server/it/PlatformHttpIT.java | 4 ++-- .../quarkus/component/servlet/CamelServletIT.java | 4 ++-- .../camel/quarkus/component/slack/it/SlackIT.java | 4 ++-- .../quarkus/component/tarfile/it/TarfileIT.java| 4 ++-- .../quarkus/component/twitter/CamelTwitterIT.java | 4 ++-- .../quarkus/component/zipfile/it/ZipfileIT.java| 4 ++-- pom.xml| 6 +++--- poms/bom/pom.xml | 10 + 50 files changed, 162 insertions(+), 135 deletions(-) diff --git a/build/create-extension-templates/IT.java b/build/create-extension-templates/IT.java index 08def63..9012813 100644 --- a/build/create-extension-templates/IT.java +++ b/build/create-extension-templates/IT.java @@ -16,9 +16,9 @@ */ package [=javaPackageBase].it; -import io.quarkus.test.junit.SubstrateTest; +import io.quarkus.test.junit.NativeImageTest; -@SubstrateTest +@NativeImageTest class [=artifactIdBaseCamelCase]IT extends [=artifactIdBaseCamelCase]Test { } diff --git a/examples/observability/src/test/java/org/acme/observability/ObservabilityIT.java b/examples/observability/src/test/java/org/acme/observability/ObservabilityIT.java index 086e67e..3e4abda 100644 --- a/examples/observability/src/test/java/org/acme/observability/ObservabilityIT.java +++ b/examples/observability/src/test/java/org/acme/observability/ObservabilityIT.java @@ -1,7 +1,7 @@ package org.acme.observability; -import io.quarkus.test.junit.SubstrateTest; +import io.quarkus.test.junit.NativeImageTest; -@SubstrateTest +@NativeImageTest public class ObservabilityIT extends ObservabilityTest { } diff --git a/examples/rest-json/src/test/java/org/acme/rest/json/RestJsonIT.java b/examples/rest-json/src/test/java/org/acme/rest/json/RestJsonIT.java index c32a4fb..f6595a0 100644 --- a/examples/rest-json/src/test/java/org/acme/rest/json/RestJsonIT.java +++
[camel-quarkus] 02/06: Move to Quarkus 0.27+ yaml descriptor
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-quarkus.git commit 88d3727ebd4b43da56803b8455f58736f7f54222 Author: Max Rydahl Andersen AuthorDate: Mon Oct 28 23:08:00 2019 +0100 Move to Quarkus 0.27+ yaml descriptor Why: * in 0.27 Quarkus are moving to a updated structure that is more flexible (use of open-ended `metadata` for tooling/UI annoations/labels) * in 0.27 we are also changing `quarkus-extension.json` to `quarkus-extension.yaml` * For now this only affect tools/plaform usage, thus there should be no runtime impact. This change addreses the need by: * scripted conversion from old to new format. Verified same number of files changed. --- .../src/main/resources/META-INF/quarkus-extension.json | 9 - .../src/main/resources/META-INF/quarkus-extension.yaml | 8 .../src/main/resources/META-INF/quarkus-extension.json | 10 -- .../src/main/resources/META-INF/quarkus-extension.yaml | 9 + .../src/main/resources/META-INF/quarkus-extension.json | 10 -- .../src/main/resources/META-INF/quarkus-extension.yaml | 9 + .../src/main/resources/META-INF/quarkus-extension.json | 10 -- .../src/main/resources/META-INF/quarkus-extension.yaml | 9 + .../src/main/resources/META-INF/quarkus-extension.json | 11 --- .../src/main/resources/META-INF/quarkus-extension.yaml | 9 + .../src/main/resources/META-INF/quarkus-extension.json | 10 -- .../src/main/resources/META-INF/quarkus-extension.yaml | 7 +++ .../src/main/resources/META-INF/quarkus-extension.json | 8 .../src/main/resources/META-INF/quarkus-extension.yaml | 7 +++ .../src/main/resources/META-INF/quarkus-extension.json | 9 - .../src/main/resources/META-INF/quarkus-extension.yaml | 8 .../src/main/resources/META-INF/quarkus-extension.json | 8 .../src/main/resources/META-INF/quarkus-extension.yaml | 7 +++ .../src/main/resources/META-INF/quarkus-extension.json | 11 --- .../src/main/resources/META-INF/quarkus-extension.yaml | 10 ++ .../src/main/resources/META-INF/quarkus-extension.json | 9 - .../src/main/resources/META-INF/quarkus-extension.yaml | 7 +++ .../src/main/resources/META-INF/quarkus-extension.json | 10 -- .../src/main/resources/META-INF/quarkus-extension.yaml | 8 .../src/main/resources/META-INF/quarkus-extension.json | 9 - .../src/main/resources/META-INF/quarkus-extension.yaml | 8 .../src/main/resources/META-INF/quarkus-extension.json | 11 --- .../src/main/resources/META-INF/quarkus-extension.yaml | 9 + .../src/main/resources/META-INF/quarkus-extension.json | 11 --- .../src/main/resources/META-INF/quarkus-extension.yaml | 9 + .../src/main/resources/META-INF/quarkus-extension.json | 11 --- .../src/main/resources/META-INF/quarkus-extension.yaml | 9 + .../src/main/resources/META-INF/quarkus-extension.json | 9 - .../src/main/resources/META-INF/quarkus-extension.yaml | 7 +++ .../src/main/resources/META-INF/quarkus-extension.json | 10 -- .../src/main/resources/META-INF/quarkus-extension.yaml | 8 .../src/main/resources/META-INF/quarkus-extension.json | 11 --- .../src/main/resources/META-INF/quarkus-extension.yaml | 9 + .../src/main/resources/META-INF/quarkus-extension.json | 12 .../src/main/resources/META-INF/quarkus-extension.yaml | 9 + .../src/main/resources/META-INF/quarkus-extension.json | 11 --- .../src/main/resources/META-INF/quarkus-extension.yaml | 9 + .../src/main/resources/META-INF/quarkus-extension.json | 11 --- .../src/main/resources/META-INF/quarkus-extension.yaml | 9 + .../src/main/resources/META-INF/quarkus-extension.json | 11 --- .../src/main/resources/META-INF/quarkus-extension.yaml | 9 + .../src/main/resources/META-INF/quarkus-extension.json | 10 -- .../src/main/resources/META-INF/quarkus-extension.yaml | 8 .../src/main/resources/META-INF/quarkus-extension.json | 10 -- .../src/main/resources/META-INF/quarkus-extension.yaml | 8 .../src/main/resources/META-INF/quarkus-extension.json | 10 -- .../src/main/resources/META-INF/quarkus-extension.yaml | 8 .../src/main/resources/META-INF/quarkus-extension.json | 10 -- .../src/main/resources/META-INF/quarkus-extension.yaml |
[camel-quarkus] 05/06: Tenporary disable tfhir tests as the testing endpoint seems to be down
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-quarkus.git commit f1a1d14150e443b7436d0ec16b52c7020be028e9 Author: lburgazzoli AuthorDate: Wed Oct 30 11:39:41 2019 +0100 Tenporary disable tfhir tests as the testing endpoint seems to be down --- integration-tests/fhir/pom.xml | 5 +++-- integration-tests/fhir/src/main/resources/application.properties | 6 -- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/integration-tests/fhir/pom.xml b/integration-tests/fhir/pom.xml index bd314b4..cc6fc0c 100644 --- a/integration-tests/fhir/pom.xml +++ b/integration-tests/fhir/pom.xml @@ -78,9 +78,10 @@ + false + false diff --git a/integration-tests/fhir/src/main/resources/application.properties b/integration-tests/fhir/src/main/resources/application.properties index 863922c..7ff03d1 100644 --- a/integration-tests/fhir/src/main/resources/application.properties +++ b/integration-tests/fhir/src/main/resources/application.properties @@ -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. @@ -25,8 +25,10 @@ quarkus.ssl.native=true # The HAPI-FHIR library, on which camel-fhir depends on, heavily uses reflection which affects performance in Quarkus # (memory footprint, build time, CPU resources etc...). For the sake of time, only DSTU3 (which is the default FHIR version) # tests are enabled for DSTU3 only by default. +# +# All the test are temporary disabled as the FHIR testing service seems to be down quarkus.camel.fhir.enable-dstu2=false -quarkus.camel.fhir.enable-dstu3=true +quarkus.camel.fhir.enable-dstu3=false quarkus.camel.fhir.enable-r4=false #
[camel-quarkus] 06/06: Add quarkus-platform-ignore to test that are not supposed to be executed in quarkus-platform
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-quarkus.git commit 24cfba015d31c0eb86f64a9eab032d63bb32cc31 Author: lburgazzoli AuthorDate: Wed Oct 30 12:10:57 2019 +0100 Add quarkus-platform-ignore to test that are not supposed to be executed in quarkus-platform --- .../org/apache/camel/quarkus/core/CamelTest.java | 29 +++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/integration-tests/core-main/test/src/test/java/org/apache/camel/quarkus/core/CamelTest.java b/integration-tests/core-main/test/src/test/java/org/apache/camel/quarkus/core/CamelTest.java index 934b44c..03b230a 100644 --- a/integration-tests/core-main/test/src/test/java/org/apache/camel/quarkus/core/CamelTest.java +++ b/integration-tests/core-main/test/src/test/java/org/apache/camel/quarkus/core/CamelTest.java @@ -26,6 +26,7 @@ import io.restassured.path.json.JsonPath; import io.restassured.response.Response; import org.apache.camel.quarkus.core.runtime.support.SupportListener; import org.apache.camel.reactive.vertx.VertXReactiveExecutor; +import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import static org.assertj.core.api.Assertions.assertThat; @@ -59,6 +60,29 @@ public class CamelTest { .then().body(is("my-ctx-name")); } +/* + * This test is tagged with quarkus-platform-ignore as it needs to be + * ignored when running camel test from the quarkus-platform as the + * test relies on a local route file being loaded. + */ +@Test +@Tag("quarkus-platform-ignore") +public void testMainInstanceWithXmlRoutes() { +JsonPath p = RestAssured.given() +.accept(MediaType.APPLICATION_JSON) +.get("/test/main/describe") +.then() +.statusCode(200) +.extract() +.body() +.jsonPath(); + +assertThat(p.getList("routeBuilders", String.class)) +.contains(SupportListener.MyBuilder.class.getName()); +assertThat(p.getList("routes", String.class)) +.contains("my-xml-route"); +} + @Test public void testMainInstance() { JsonPath p = RestAssured.given() @@ -73,12 +97,11 @@ public class CamelTest { assertThat(p.getList("listeners", String.class)) .containsOnly(CamelMainEventDispatcher.class.getName(), SupportListener.class.getName()); assertThat(p.getList("routeBuilders", String.class)) -.containsOnly(CamelRoute.class.getName(), SupportListener.MyBuilder.class.getName()); +.contains(CamelRoute.class.getName()); assertThat(p.getList("routes", String.class)) -.containsOnly("keep-alive", "configure", "beforeStart", "my-xml-route"); +.contains("keep-alive", "configure", "beforeStart"); assertThat(p.getBoolean("autoConfigurationLogSummary")).isFalse(); - } @Test
[GitHub] [camel-quarkus] lburgazzoli merged pull request #350: Upgrade to quarkus 0.27.0
lburgazzoli merged pull request #350: Upgrade to quarkus 0.27.0 URL: https://github.com/apache/camel-quarkus/pull/350 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-quarkus] 03/06: Support new yaml format to extension meatdata validation script
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-quarkus.git commit 90ed33c07925bc00875225edeb0fcd6bd17125e1 Author: lburgazzoli AuthorDate: Wed Oct 30 07:17:23 2019 +0100 Support new yaml format to extension meatdata validation script --- build/scripts/validate-extension-metadata.groovy | 45 ++ .../main/resources/META-INF/quarkus-extension.json | 10 - .../main/resources/META-INF/quarkus-extension.yaml | 8 extensions/pom.xml | 7 pom.xml| 3 +- poms/bom/pom.xml | 5 +++ 6 files changed, 50 insertions(+), 28 deletions(-) diff --git a/build/scripts/validate-extension-metadata.groovy b/build/scripts/validate-extension-metadata.groovy index 89db0ee..e3d0202 100644 --- a/build/scripts/validate-extension-metadata.groovy +++ b/build/scripts/validate-extension-metadata.groovy @@ -16,36 +16,47 @@ */ import groovy.io.FileType -import groovy.json.JsonSlurper -final String quarkusExtensionJsonRelPath = 'runtime/src/main/resources/META-INF/quarkus-extension.json' +final String quarkusExtensionRelPath = 'runtime/src/main/resources/META-INF/quarkus-extension.yaml' final List messages = [] -project.basedir.eachFile FileType.DIRECTORIES, { extensionParentDir -> -if (new File(extensionParentDir, 'runtime/pom.xml').exists()) { -final File extensionJsonFile = new File(extensionParentDir, quarkusExtensionJsonRelPath) -final String shortName = extensionParentDir.getName() -final String shortPath = shortName + '/' + quarkusExtensionJsonRelPath -final boolean internal = (shortName.startsWith('core') || shortName.endsWith('-common')) -if (!extensionJsonFile.exists()) { + +project.basedir.eachFile(FileType.DIRECTORIES) { +if (new File(it, 'runtime/pom.xml').exists()) { +final File extensionFile = new File(it, quarkusExtensionRelPath) +final String shortPath = it.name + '/' + quarkusExtensionRelPath + +if (!extensionFile.exists()) { messages.add(shortPath + ' is missing') } else { -final Map extensionJson = new JsonSlurper().parseText(extensionJsonFile.getText("UTF-8")) -if (extensionJson['name'] == null) { +def yaml = new org.yaml.snakeyaml.Yaml() +def descriptor = yaml.load(extensionFile.getText("UTF-8")) + +if (!descriptor.name) { messages.add(shortPath + ' must contain name') } -if (!(extensionJson['labels'] instanceof List) -|| !extensionJson['labels'].contains("camel") -|| !extensionJson['labels'].contains("integration")) { -messages.add(shortPath + ' must contain a list of labels with at least "integration" and "camel" labels present') + +// metadata +if (!descriptor.metadata) { +messages.add(shortPath + ' must contain metadata section') +return } -if (extensionJson['guide'] == null || !"https://quarkus.io/guides/camel".equals(extensionJson['guide'])) { +if (!descriptor.metadata.guide?.equals('https://quarkus.io/guides/camel')) { messages.add(shortPath + ' must contain a link to the guide https://quarkus.io/guides/camel') } + +// keywords +if (!descriptor.metadata.keywords) { +messages.add(shortPath + ' must contain keywords section') +return +} +if (!descriptor.metadata.keywords?.contains('camel')) { +messages.add(shortPath + ' must contain a list of keywords with at least "camel" present') +} } } } if (!messages.isEmpty()) { throw new RuntimeException("\nQuarkus extension metadata validation failures:\n\n" -+ messages.join("\n")) ++ messages.join('\n')) } \ No newline at end of file diff --git a/extensions/pdf/runtime/src/main/resources/META-INF/quarkus-extension.json b/extensions/pdf/runtime/src/main/resources/META-INF/quarkus-extension.json deleted file mode 100644 index 1aca726..000 --- a/extensions/pdf/runtime/src/main/resources/META-INF/quarkus-extension.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "name": "Camel Quarkus PDF", - "labels": [ -"integration", -"camel", -"pdf" - ], - "guide": "https://quarkus.io/guides/camel; -} - diff --git a/extensions/pdf/runtime/src/main/resources/META-INF/quarkus-extension.yaml b/extensions/pdf/runtime/src/main/resources/META-INF/quarkus-extension.yaml new file mode 100644 index 000..14fc389 --- /dev/null +++ b/extensions/pdf/runtime/src/main/resources/META-INF/quarkus-extension.yaml @@ -0,0 +1,8 @@ +--- +name: "Camel Quarkus PDF"
[camel-quarkus] 04/06: Add category to extension descriptors #347
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-quarkus.git commit 97791aefa82152e375dcf378cdc86d7b7f46200a Author: lburgazzoli AuthorDate: Wed Oct 30 07:39:14 2019 +0100 Add category to extension descriptors #347 --- build/scripts/validate-extension-metadata.groovy| 13 +++-- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 2 ++ .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 4 +++- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- .../src/main/resources/META-INF/quarkus-extension.yaml | 3 ++- 40 files changed, 90 insertions(+), 40 deletions(-) diff --git a/build/scripts/validate-extension-metadata.groovy b/build/scripts/validate-extension-metadata.groovy index e3d0202..3eacf28 100644 --- a/build/scripts/validate-extension-metadata.groovy +++ b/build/scripts/validate-extension-metadata.groovy @@ -46,11 +46,20 @@ project.basedir.eachFile(FileType.DIRECTORIES) { // keywords if (!descriptor.metadata.keywords) { -messages.add(shortPath + ' must contain keywords section') +messages.add(shortPath + ' metadata must contain keywords section') return } if (!descriptor.metadata.keywords?.contains('camel')) { -messages.add(shortPath + ' must contain a list of keywords with at least "camel" present') +messages.add(shortPath + ' metadata must contain a list of keywords with at least "camel" present') +} + +// categories +if (!descriptor.metadata.categories) { +messages.add(shortPath + ' metadata must contain categories section') +return +} +if (!descriptor.metadata.categories?.contains('integration')) { +messages.add(shortPath + ' metadata must contain a list of categories with at least "integration" present') } } } diff --git a/extensions/attachments/runtime/src/main/resources/META-INF/quarkus-extension.yaml b/extensions/attachments/runtime/src/main/resources/META-INF/quarkus-extension.yaml index bd762c6..b7c3f0c 100644 --- a/extensions/attachments/runtime/src/main/resources/META-INF/quarkus-extension.yaml +++ b/extensions/attachments/runtime/src/main/resources/META-INF/quarkus-extension.yaml @@ -2,7 +2,8 @@ name: "Camel Quarkus
[GitHub] [camel-quarkus] lburgazzoli closed issue #346: Update to quarkus 0.27.0 when available
lburgazzoli closed issue #346: Update to quarkus 0.27.0 when available URL: https://github.com/apache/camel-quarkus/issues/346 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-quarkus] branch master updated (ac1ef8f -> 24cfba0)
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-quarkus.git. from ac1ef8f Fix #299 Use Camel's async processor in platform-http new 7f25029 Update to quarkus 0.27.0 new 88d3727 Move to Quarkus 0.27+ yaml descriptor new 90ed33c Support new yaml format to extension meatdata validation script new 97791ae Add category to extension descriptors #347 new f1a1d14 Tenporary disable tfhir tests as the testing endpoint seems to be down new 24cfba0 Add quarkus-platform-ignore to test that are not supposed to be executed in quarkus-platform The 6 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: build/create-extension-templates/IT.java | 4 +- build/scripts/validate-extension-metadata.groovy | 54 +++--- .../org/acme/observability/ObservabilityIT.java| 4 +- .../test/java/org/acme/rest/json/RestJsonIT.java | 4 +- .../main/resources/META-INF/quarkus-extension.json | 9 .../main/resources/META-INF/quarkus-extension.yaml | 9 .../aws/eks/deployment/AwsEKSProcessor.java| 14 +++--- .../main/resources/META-INF/quarkus-extension.json | 10 .../main/resources/META-INF/quarkus-extension.yaml | 10 .../aws/s3/deployment/AwsS3Processor.java | 16 +++ .../main/resources/META-INF/quarkus-extension.json | 10 .../main/resources/META-INF/quarkus-extension.yaml | 10 .../aws/sns/deployment/AwsSNSProcessor.java| 14 +++--- .../main/resources/META-INF/quarkus-extension.json | 10 .../main/resources/META-INF/quarkus-extension.yaml | 10 .../aws/sqs/deployment/AwsSQSProcessor.java| 14 +++--- .../main/resources/META-INF/quarkus-extension.json | 11 - .../main/resources/META-INF/quarkus-extension.yaml | 10 .../main/resources/META-INF/quarkus-extension.json | 10 .../main/resources/META-INF/quarkus-extension.yaml | 8 extensions/core-cloud/runtime/pom.xml | 6 +++ .../main/resources/META-INF/quarkus-extension.json | 8 .../main/resources/META-INF/quarkus-extension.yaml | 8 .../main/resources/META-INF/quarkus-extension.json | 9 .../main/resources/META-INF/quarkus-extension.yaml | 9 .../core/deployment/NativeImageProcessor.java | 11 ++--- .../main/resources/META-INF/quarkus-extension.json | 8 .../main/resources/META-INF/quarkus-extension.yaml | 8 .../main/resources/META-INF/quarkus-extension.json | 11 - .../main/resources/META-INF/quarkus-extension.yaml | 11 + .../main/resources/META-INF/quarkus-extension.json | 9 .../main/resources/META-INF/quarkus-extension.yaml | 8 .../component/fhir/deployment/FhirProcessor.java | 24 +- extensions/fhir/runtime/pom.xml| 4 ++ .../main/resources/META-INF/quarkus-extension.json | 10 .../main/resources/META-INF/quarkus-extension.yaml | 9 extensions/http-common/runtime/pom.xml | 4 +- .../main/resources/META-INF/quarkus-extension.json | 9 .../main/resources/META-INF/quarkus-extension.yaml | 9 .../infinispan/deployment/InfinispanProcessor.java | 2 +- extensions/infinispan/runtime/pom.xml | 6 +++ .../main/resources/META-INF/quarkus-extension.json | 11 - .../main/resources/META-INF/quarkus-extension.yaml | 10 .../main/resources/META-INF/quarkus-extension.json | 11 - .../main/resources/META-INF/quarkus-extension.yaml | 10 extensions/jdbc/runtime/pom.xml| 4 +- .../main/resources/META-INF/quarkus-extension.json | 11 - .../main/resources/META-INF/quarkus-extension.yaml | 10 .../main/resources/META-INF/quarkus-extension.json | 9 .../main/resources/META-INF/quarkus-extension.yaml | 8 .../component/mail/deployment/MailProcessor.java | 10 ++-- .../main/resources/META-INF/quarkus-extension.json | 10 .../main/resources/META-INF/quarkus-extension.yaml | 9 .../main/resources/META-INF/quarkus-extension.json | 11 - .../main/resources/META-INF/quarkus-extension.yaml | 10 .../main/resources/META-INF/quarkus-extension.json | 12 - .../main/resources/META-INF/quarkus-extension.yaml | 10 .../main/resources/META-INF/quarkus-extension.json | 11 - .../main/resources/META-INF/quarkus-extension.yaml | 10 .../deployment/OpenTracingProcessor.java | 7 ++- .../main/resources/META-INF/quarkus-extension.json | 11 - .../main/resources/META-INF/quarkus-extension.yaml | 11 + .../component/paho/deployment/PahoProcessor.java | 16 +++ .../main/resources/META-INF/quarkus-extension.json | 11 -
[GitHub] [camel-quarkus] asf-ci commented on issue #353: Camel quarkus netty
asf-ci commented on issue #353: Camel quarkus netty URL: https://github.com/apache/camel-quarkus/pull/353#issuecomment-548000142 Refer to this link for build results (access rights to CI server needed): https://builds.apache.org/job/camel-quarkus-pr/362/ 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: update camel-jpa doc about when entityType is a list implementation
This is an automated email from the ASF dual-hosted git repository. bvahdat 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 a20fdca update camel-jpa doc about when entityType is a list implementation a20fdca is described below commit a20fdcaceb5c84d0672081d2d90cb6b5cdac1255 Author: Babak Vahdat AuthorDate: Wed Oct 30 19:25:03 2019 +0100 update camel-jpa doc about when entityType is a list implementation --- components/camel-jpa/src/main/docs/jpa-component.adoc | 8 docs/components/modules/ROOT/pages/jpa-component.adoc | 8 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/components/camel-jpa/src/main/docs/jpa-component.adoc b/components/camel-jpa/src/main/docs/jpa-component.adoc index ec89af9..a060f28 100644 --- a/components/camel-jpa/src/main/docs/jpa-component.adoc +++ b/components/camel-jpa/src/main/docs/jpa-component.adoc @@ -30,7 +30,7 @@ http://java.sun.com/javaee/5/docs/api/javax/persistence/Entity.html[@Entity] annotation on it) or a collection or array of entity beans. If the body is a List of entities, make sure to use -*entityType=java.util.ArrayList* as a configuration passed to the +*entityType=java.util.List* as a configuration passed to the producer endpoint. If the body does not contain one of the previous listed types, put a @@ -419,7 +419,7 @@ Index: 20, Size: 20 [source,xml] --- -http://camel.apache.org/schema/spring;> +http://camel.apache.org/schema/spring;> @@ -457,13 +457,13 @@ https://svn.apache.org/repos/asf/camel/trunk/components/camel-jpa/pom.xml[enhanc the byte-code at build time]. To overcome this you need to enable http://openjpa.apache.org/entity-enhancement.html#dynamic-enhancement[dynamic byte-code enhancement of OpenJPA]. For example, assuming the current -OpenJPA version being used in Camel is 2.2.1, to run the +OpenJPA version being used in Camel is 2.2.1, to run the tests inside your IDE you would need to pass the following argument to the JVM: [source,java] --- - + -javaagent:/org/apache/openjpa/openjpa/2.2.1/openjpa-2.2.1.jar --- diff --git a/docs/components/modules/ROOT/pages/jpa-component.adoc b/docs/components/modules/ROOT/pages/jpa-component.adoc index 7084dc1..2bc24a5 100644 --- a/docs/components/modules/ROOT/pages/jpa-component.adoc +++ b/docs/components/modules/ROOT/pages/jpa-component.adoc @@ -31,7 +31,7 @@ http://java.sun.com/javaee/5/docs/api/javax/persistence/Entity.html[@Entity] annotation on it) or a collection or array of entity beans. If the body is a List of entities, make sure to use -*entityType=java.util.ArrayList* as a configuration passed to the +*entityType=java.util.List* as a configuration passed to the producer endpoint. If the body does not contain one of the previous listed types, put a @@ -420,7 +420,7 @@ Index: 20, Size: 20 [source,xml] --- -http://camel.apache.org/schema/spring;> +http://camel.apache.org/schema/spring;> @@ -458,13 +458,13 @@ https://svn.apache.org/repos/asf/camel/trunk/components/camel-jpa/pom.xml[enhanc the byte-code at build time]. To overcome this you need to enable http://openjpa.apache.org/entity-enhancement.html#dynamic-enhancement[dynamic byte-code enhancement of OpenJPA]. For example, assuming the current -OpenJPA version being used in Camel is 2.2.1, to run the +OpenJPA version being used in Camel is 2.2.1, to run the tests inside your IDE you would need to pass the following argument to the JVM: [source,java] --- - + -javaagent:/org/apache/openjpa/openjpa/2.2.1/openjpa-2.2.1.jar ---
[GitHub] [camel-quarkus] asf-ci commented on issue #353: Camel quarkus netty
asf-ci commented on issue #353: Camel quarkus netty URL: https://github.com/apache/camel-quarkus/pull/353#issuecomment-548061149 Refer to this link for build results (access rights to CI server needed): https://builds.apache.org/job/camel-quarkus-pr/364/ 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 a change in pull request #353: Camel quarkus netty
ppalaga commented on a change in pull request #353: Camel quarkus netty URL: https://github.com/apache/camel-quarkus/pull/353#discussion_r340793893 ## File path: integration-tests/netty/src/main/resources/application.properties ## @@ -0,0 +1,30 @@ +## --- +## 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. +## --- +# +# Quarkus +# +quarkus.log.file.enable = false + +# +# Quarkus :: Camel +# +quarkus.camel.dump-routes=true Review comment: `quarkus.camel.dump-routes` is ignored since recently and can be removed. 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 a change in pull request #353: Camel quarkus netty
ppalaga commented on a change in pull request #353: Camel quarkus netty URL: https://github.com/apache/camel-quarkus/pull/353#discussion_r340795518 ## File path: integration-tests/netty/src/test/java/org/apache/camel/quarkus/component/netty/it/NettyTest.java ## @@ -0,0 +1,57 @@ +/* + * 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. + */ +package org.apache.camel.quarkus.component.netty.it; + +import io.quarkus.test.junit.QuarkusTest; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; + + + +import java.io.*; +import java.net.Socket; + + +@QuarkusTest +class NettyTest { + +@Test +public void testPoem() { +//simulate https://github.com/apache/camel/blob/master/components/camel-netty/src/test/java/org/apache/camel/component/netty/NettyTCPSyncTest.java +final String poem = "Epitaph in Kohima, India marking the WWII Battle of Kohima and Imphal, Burma Campaign - Attributed to John Maxwell Edmonds"; +final String expectedResponse = "When You Go Home, Tell Them Of Us And Say, For Your Tomorrow, We Gave Our Today."; +try{ +final Socket socket = new Socket("localhost", 8999); Review comment: Could you please use enclose each Closeable resource in a try-with, to make sure that they all get closed even in case of an exception? 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 a change in pull request #353: Camel quarkus netty
ppalaga commented on a change in pull request #353: Camel quarkus netty URL: https://github.com/apache/camel-quarkus/pull/353#discussion_r340786046 ## File path: extensions/netty/runtime/src/main/resources/META-INF/quarkus-extension.json ## @@ -0,0 +1,10 @@ +{ + "name": "Camel Quarkus MicroProfile Netty", + "labels": [ +"integration", +"camel", +"netty" + ], + "guide": "https://quarkus.io/guides/camel; +} Review comment: We recently switched to yaml and there is a new required attribute `category` - see other extensions for examples. 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 a change in pull request #353: Camel quarkus netty
ppalaga commented on a change in pull request #353: Camel quarkus netty URL: https://github.com/apache/camel-quarkus/pull/353#discussion_r340796295 ## File path: integration-tests/netty/src/test/java/org/apache/camel/quarkus/component/netty/it/NettyTest.java ## @@ -0,0 +1,57 @@ +/* + * 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. + */ +package org.apache.camel.quarkus.component.netty.it; + +import io.quarkus.test.junit.QuarkusTest; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; + + + +import java.io.*; +import java.net.Socket; + + +@QuarkusTest +class NettyTest { + +@Test +public void testPoem() { +//simulate https://github.com/apache/camel/blob/master/components/camel-netty/src/test/java/org/apache/camel/component/netty/NettyTCPSyncTest.java +final String poem = "Epitaph in Kohima, India marking the WWII Battle of Kohima and Imphal, Burma Campaign - Attributed to John Maxwell Edmonds"; +final String expectedResponse = "When You Go Home, Tell Them Of Us And Say, For Your Tomorrow, We Gave Our Today."; +try{ +final Socket socket = new Socket("localhost", 8999); +socket.setSoLinger(true, 0); +final PrintWriter outputWriter = new PrintWriter(socket.getOutputStream(),true); +//we'll use a reader and take advantage of the .readLine() +final BufferedReader inputReader = new BufferedReader(new InputStreamReader(socket.getInputStream())); + +outputWriter.println(poem); + +String response = inputReader.readLine(); + + Assertions.assertTrue(response.equalsIgnoreCase(expectedResponse), "Response did not match expected response"); +socket.close(); //NOTE this is causing the server to warn java.io.IOException: Connection reset by peer +}catch(Exception ex){ +System.out.println(ex); Review comment: Maybe better throw all exceptions out of the test. I assume we want to fail if there is an exception, do we not? 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 a change in pull request #353: Camel quarkus netty
ppalaga commented on a change in pull request #353: Camel quarkus netty URL: https://github.com/apache/camel-quarkus/pull/353#discussion_r340781518 ## File path: docs/modules/ROOT/pages/list-of-camel-quarkus-extensions.adoc ## @@ -51,6 +51,9 @@ Number of Camel components: 25 in 21 JAR artifacts (0 deprecated) | xref:extensions/microprofile-metrics.adoc[MicroProfile Metrics] (camel-quarkus-microprofile-metrics) + `microprofile-metrics:metricType:metricName` | 0.2 | Camel metrics exposed with Eclipse MicroProfile Metrics +| link:https://camel.apache.org/components/latest/netty-component.html[Netty] (camel-quarkus-netty) + Review comment: > This should be an xref pointing to the local docs in quarkus. The link or xref are auto-generated depending on whether `docs/modules/ROOT/pages/extensions/netty.adoc` exists or not. If `netty.adoc` does not exist, a link to the Camel component page is generated. @dhartford should create `netty.adoc` only if the usage of the new netty extension differs from the stock Camel component. 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] dhartford commented on a change in pull request #353: Camel quarkus netty
dhartford commented on a change in pull request #353: Camel quarkus netty URL: https://github.com/apache/camel-quarkus/pull/353#discussion_r340805122 ## File path: extensions/netty/runtime/src/main/resources/META-INF/quarkus-extension.json ## @@ -0,0 +1,10 @@ +{ + "name": "Camel Quarkus MicroProfile Netty", + "labels": [ +"integration", +"camel", +"netty" + ], + "guide": "https://quarkus.io/guides/camel; +} Review comment: updated, copy from another, used 'categories' attribute, done 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-14110 updated (bed1323 -> 463c32f)
This is an automated email from the ASF dual-hosted git repository. janbednar pushed a change to branch CAMEL-14110 in repository https://gitbox.apache.org/repos/asf/camel.git. discard bed1323 CAMEL-14110: Nitrite component initial commit add 1a011e4 CAMEL-14061 camel-website - Add page for contributing (#3294) add 5453f38 Regen add 587823c CAMEL-14070 camel-netty-http: update client to support Server Name Indication (SNI) (#3291) add 46e93a0 CAMEL-14076 - camel-hdfs - Make the HdfsProducer compatible with RemoteFileConsumer (from(hdfs) -> to(sftp)) (#3285) add 8de7e4e CAMEL-14076: Fixed CS add cf7ab1c Polished add 33f4915 Camel 14090: Break camel-debezium into camel-debezium-common and camel-debezium-mysql (#3293) add 5be27b6 Upgrade swagger add 28a1ebd Removed Typo (#3295) add c2586d1 Camel 14090: Break camel-debezium into camel-debezium-common and camel-debezium-mysql add 9b21d36 Regen add 18aa634 CAMEL-14101 - json-jackson dataformat: potential ObjectMapper configuration clashes add 193fe72 CAMEL-14101 - Regen add 83ec8eb CAMEL-14101 - Use Boolean and not boolean in JsonDataFormat add 681ed35 CAMEL-14101 - Regen add e75c436 CAMEL-14101 - Fixed CS add 61ac81a CAMEL-14101 - Fixed CS in camel-core-engine add 58d91ce Regen add c41989f CAMEL-14097: camel-grpc - Preserve message headers in producer when forwaring exchange and setting response body. add 00e196a CAMEL-14101 - Add a little log warn about customizations add b41e56a Regen docs and fixed links for debezium add 6e23c9c Camel-Robotframework: Removed OSGi properties since not needed add 05a3372 CAMEL-13914: Add build phase to service lifecycle in Camel which can be leveraged by camel-quarkus and others where we can prepare for special build-time optimizations. (#3296) add 342fa92 Camel-Debezium: Ignore the camel-debezium-mysql Karaf test for the moment add 6014e85 CAMEL-13844: Deprecate get rest configuration api for non default as we want to only have 1 in the future. add 28d019c CAMEL-13233: Add trace logging for absolute path in file consumer add b082337 Upgrade Narayana to version 5.10.0.Final add 1c2318d Remove Debezium MySQL dependencies from debezium parent (#3297) new 463c32f CAMEL-14110: Nitrite component initial commit This update added new revisions after undoing existing revisions. That is to say, some revisions that were in the old version of the branch are not in the new version. This situation occurs when a user --force pushes a change and generates a repository containing something like this: * -- * -- B -- O -- O -- O (bed1323) \ N -- N -- N refs/heads/CAMEL-14110 (463c32f) You should already have received notification emails for all of the O revisions, and so the following emails describe only the N revisions from the common base, B. Any revisions marked "omit" are not gone; other references still refer to them. Any revisions marked "discard" are gone forever. The 1 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: apache-camel/pom.xml | 16 +- apache-camel/src/main/descriptors/common-bin.xml |6 +- bom/camel-bom/pom.xml | 16 +- .../camel-debezium-common-component/pom.xml| 85 ++ .../component/debezium/DebeziumComponent.java | 70 ++ .../component/debezium/DebeziumConstants.java |0 .../camel/component/debezium/DebeziumConsumer.java |0 .../camel/component/debezium/DebeziumEndpoint.java | 38 +- .../component/debezium/DebeziumTypeConverter.java |0 .../configuration/ConfigurationValidation.java |0 .../EmbeddedDebeziumConfiguration.java | 24 +- .../component/debezium/DebeziumConsumerTest.java |2 +- .../component/debezium/DebeziumEndpointTest.java |6 +- .../component/debezium/DebeziumTestComponent.java | 51 + .../component/debezium/DebeziumTestEndpoint.java} | 34 +- .../debezium/DebeziumTypeConverterTest.java|0 .../EmbeddedDebeziumConfigurationTest.java |0 ...FileConnectorEmbeddedDebeziumConfiguration.java |7 +- .../TestEmbeddedDebeziumConfiguration.java |7 +- .../src/test/resources/log4j2.properties |0 .../camel-debezium-maven-plugin/pom.xml|0 .../configuration/ConfigurationValidation.java |0 .../camel/maven/GenerateConnectorConfigMojo.java |0 .../camel/maven/config/ConnectorConfigField.java |0 .../maven/config/ConnectorConfigFieldsFactory.java |0 .../maven/config/ConnectorConfigGenerator.java | 10 + .../maven/GenerateConnectorConfigMojoTest.java |0
[GitHub] [camel-k] apupier opened a new pull request #1034: Add readme in examples subfolder
apupier opened a new pull request #1034: Add readme in examples subfolder URL: https://github.com/apache/camel-k/pull/1034 Signed-off-by: Aurélien Pupier I would like to point to the examples folder of this repo for the example project when creating a Camel K Che stack. Currently Eclipse Che is opening the Camel K Tekton pipelines readme by default. This is not ideal. Would it be possible to provide a readme at the root of the examples folder? If yes, in this PR I proposed a very simple description, maybe you have some ideas on what to highlight more specifically? **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-k] nicolaferraro commented on issue #813: Builds are 1200% slower on Openshift 4
nicolaferraro commented on issue #813: Builds are 1200% slower on Openshift 4 URL: https://github.com/apache/camel-k/issues/813#issuecomment-548047113 Any ocp4 cluster I've tried so far has this issue. Crc and aws. We need to understand what's the source of this problem and fix it (or ask who's responsible to fix 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] dhartford commented on a change in pull request #353: Camel quarkus netty
dhartford commented on a change in pull request #353: Camel quarkus netty URL: https://github.com/apache/camel-quarkus/pull/353#discussion_r340790432 ## File path: .gitignore ## @@ -33,3 +33,6 @@ nb-configuration.xml Review comment: the netbeans config in the .gitignore has been there a while, likely no impact leaving it there. 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 a change in pull request #353: Camel quarkus netty
ppalaga commented on a change in pull request #353: Camel quarkus netty URL: https://github.com/apache/camel-quarkus/pull/353#discussion_r340791211 ## File path: docs/modules/ROOT/pages/list-of-camel-quarkus-extensions.adoc ## @@ -51,6 +51,9 @@ Number of Camel components: 25 in 21 JAR artifacts (0 deprecated) | xref:extensions/microprofile-metrics.adoc[MicroProfile Metrics] (camel-quarkus-microprofile-metrics) + `microprofile-metrics:metricType:metricName` | 0.2 | Camel metrics exposed with Eclipse MicroProfile Metrics +| link:https://camel.apache.org/components/latest/netty-component.html[Netty] (camel-quarkus-netty) + +`netty:protocol:host:port` | 0.2 | Socket level networking using TCP or UDP with the Netty 4.x library. + Review comment: `0.2` is not correct. Please add ``` 0.4.0 ``` property to `extensions/netty/runtime/pom.xml` 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