This is an automated email from the ASF dual-hosted git repository.

ppalaga 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 fbab4be  Fix of Spring RabbitMQ integration test failures after spring 
update
fbab4be is described below

commit fbab4bedab318d537551fea438b2031ca9f9782f
Author: JiriOndrusek <ondrusek.j...@gmail.com>
AuthorDate: Tue Mar 30 15:00:55 2021 +0200

    Fix of Spring RabbitMQ integration test failures after spring update
---
 .../pages/reference/extensions/spring-rabbitmq.adoc     | 12 ++++++++++++
 .../runtime/src/main/doc/limitations.adoc               |  8 ++++++++
 .../src/main/resources/application.properties           | 17 +++++++++++++++++
 pom.xml                                                 |  2 +-
 4 files changed, 38 insertions(+), 1 deletion(-)

diff --git a/docs/modules/ROOT/pages/reference/extensions/spring-rabbitmq.adoc 
b/docs/modules/ROOT/pages/reference/extensions/spring-rabbitmq.adoc
index bff1f77..751b331 100644
--- a/docs/modules/ROOT/pages/reference/extensions/spring-rabbitmq.adoc
+++ b/docs/modules/ROOT/pages/reference/extensions/spring-rabbitmq.adoc
@@ -31,3 +31,15 @@ Please refer to the above link for usage and configuration 
details.
 ----
 
 Check the xref:user-guide/index.adoc[User guide] for more information about 
writing Camel Quarkus applications.
+
+== Camel Quarkus limitations
+
+You can use this extension without any special configuration in JVM mode.
+
+In native mode you need to add
+[source,shell]
+----
+quarkus.native.additional-build-args = -H:+InlineBeforeAnalysis
+----
+to your `application.properties`. This is to allow inlining of some static 
methods that would otherwise cause build failures (see this 
https://github.com/oracle/graal/issues/2594[GraalVM issue]).
+
diff --git a/extensions/spring-rabbitmq/runtime/src/main/doc/limitations.adoc 
b/extensions/spring-rabbitmq/runtime/src/main/doc/limitations.adoc
new file mode 100644
index 0000000..9da3473
--- /dev/null
+++ b/extensions/spring-rabbitmq/runtime/src/main/doc/limitations.adoc
@@ -0,0 +1,8 @@
+You can use this extension without any special configuration in JVM mode.
+
+In native mode you need to add
+[source,shell]
+----
+quarkus.native.additional-build-args = -H:+InlineBeforeAnalysis
+----
+to your `application.properties`. This is to allow inlining of some static 
methods that would otherwise cause build failures (see this 
https://github.com/oracle/graal/issues/2594[GraalVM issue]).
diff --git 
a/integration-tests/spring-rabbitmq/src/main/resources/application.properties 
b/integration-tests/spring-rabbitmq/src/main/resources/application.properties
new file mode 100644
index 0000000..03b5ac2
--- /dev/null
+++ 
b/integration-tests/spring-rabbitmq/src/main/resources/application.properties
@@ -0,0 +1,17 @@
+## ---------------------------------------------------------------------------
+## 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.native.additional-build-args=-H:+InlineBeforeAnalysis
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index f705f70..479e39a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -110,7 +110,7 @@
         
<smallrye.reactive.messaging.camel.version>2.9.0</smallrye.reactive.messaging.camel.version>
 <!-- keep in sync with Quarkus SmallRye Reactive Messaging -->
         <soap-api.version>1.4.0</soap-api.version><!-- keep in sync with Camel 
-->
         <!-- Keep spring.version aligned with the version used by Camel -->
-        <spring.version>5.3.3</spring.version> <!-- Should be 
${spring5-version}, workaround for 
https://github.com/apache/camel-quarkus/issues/2340 -->
+        <spring.version>${spring5-version}</spring.version>
         <snakeyaml.version>${snakeyaml-version}</snakeyaml.version>
         <snappy.version>1.1.7.7</snappy.version><!-- Spark -->
         <threetenbp.version>1.4.0</threetenbp.version>

Reply via email to