You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pp...@apache.org on 2020/12/11 17:16:09 UTC
[camel-quarkus] 06/07: Fix java.lang.LinkageError: loader
constraint violation: when resolving field DATETIME of type
javax.xml.namespace.QName intruduced after CSimple language support #2036
This is an automated email from the ASF dual-hosted git repository.
ppalaga pushed a commit to branch camel-master
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit 32300d980a9300bc267adf0d16d4969d793addf4
Author: Peter Palaga <pp...@redhat.com>
AuthorDate: Fri Dec 11 11:57:50 2020 +0100
Fix java.lang.LinkageError: loader constraint violation: when resolving field DATETIME of type javax.xml.namespace.QName intruduced after CSimple language support #2036
---
extensions-core/xml-jaxb/runtime/pom.xml | 12 ++++++++++++
extensions/xstream/runtime/pom.xml | 6 ++++++
2 files changed, 18 insertions(+)
diff --git a/extensions-core/xml-jaxb/runtime/pom.xml b/extensions-core/xml-jaxb/runtime/pom.xml
index ed7b880..dfcd852 100644
--- a/extensions-core/xml-jaxb/runtime/pom.xml
+++ b/extensions-core/xml-jaxb/runtime/pom.xml
@@ -52,10 +52,22 @@
<groupId>org.apache.camel</groupId>
<artifactId>camel-xml-jaxb</artifactId>
<exclusions>
+ <!-- We prefer using -->
+ <!-- the spec jar org.jboss.spec.javax.xml.bind:jboss-jaxb-api_2.3_spec-parent -->
+ <!-- and the implementation jar org.glassfish.jaxb:jaxb-runtime -->
+ <!-- pulled via io.quarkus:quarkus-jaxb -->
<exclusion>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
</exclusion>
+ <exclusion>
+ <groupId>com.sun.xml.bind</groupId>
+ <artifactId>jaxb-core</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>com.sun.xml.bind</groupId>
+ <artifactId>jaxb-impl</artifactId>
+ </exclusion>
</exclusions>
</dependency>
<dependency>
diff --git a/extensions/xstream/runtime/pom.xml b/extensions/xstream/runtime/pom.xml
index dcfc522..37e0aa7 100644
--- a/extensions/xstream/runtime/pom.xml
+++ b/extensions/xstream/runtime/pom.xml
@@ -59,6 +59,12 @@
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-xstream</artifactId>
+ <exclusions>
+ <exclusion>
+ <groupId>stax</groupId>
+ <artifactId>stax-api</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>org.graalvm.nativeimage</groupId>