@@ -49,6 +49,49 @@ Full documentation is available at:
4949* [ Java Application Developer's Guide] ( http://docs.marklogic.com/guide/java )
5050* [ JavaDoc] ( http://docs.marklogic.com/javadoc/client/index.html )
5151
52+ ## Including JAXB support
53+
54+ As of the 7.0.0 release, the client now depends on the [ Jakarta XML Binding] ( https://eclipse-ee4j.github.io/jaxb-ri/ )
55+ API instead of the older [ JAXB API] ( https://docs.oracle.com/javase/tutorial/jaxb/intro/ ) . If you are using Java 11 or
56+ higher, you no longer need to declare additional dependencies in order to use Jakarta XML Binding. If you wish to use
57+ the older JAXB APIs - i.e. those in the ` javax.xml.bind ` package instead of ` jakarta.xml.bind ` - you are free to
58+ include those as dependencies in your application; they will not conflict with the 7.0.0 release of the Java Client.
59+
60+ ### JAXB support in 6.x releases and older
61+
62+ If you are using Java Client 6.x or older and also Java 11 or higher, and you wish to use JAXB with the Java client,
63+ you will need to include JAXB API and implementation dependencies as those are no longer included in Java 11 and higher.
64+
65+ For Maven, include the following in your pom.xml file:
66+
67+ <dependency>
68+ <groupId>javax.xml.bind</groupId>
69+ <artifactId>jaxb-api</artifactId>
70+ <version>2.3.1</version>
71+ </dependency>
72+ <dependency>
73+ <groupId>org.glassfish.jaxb</groupId>
74+ <artifactId>jaxb-runtime</artifactId>
75+ <version>2.3.2</version>
76+ </dependency>
77+ <dependency>
78+ <groupId>org.glassfish.jaxb</groupId>
79+ <artifactId>jaxb-core</artifactId>
80+ <version>2.3.0.1</version>
81+ </dependency>
82+
83+ For Gradle, include the following in your build.gradle file (this can be included in the same ` dependencies ` block
84+ as the one that includes the marklogic-client-api dependency):
85+
86+ dependencies {
87+ implementation "javax.xml.bind:jaxb-api:2.3.1"
88+ implementation "org.glassfish.jaxb:jaxb-runtime:2.3.2"
89+ implementation "org.glassfish.jaxb:jaxb-core:2.3.0.1"
90+ }
91+
92+ You are free to use any implementation of JAXB that you wish, but you need to ensure that you're using a JAXB
93+ implementation that corresponds to the ` javax.xml.bind ` interfaces.
94+
5295## Support
5396
5497The MarkLogic Java Client is maintained by [ MarkLogic] ( https://www.marklogic.com/ ) Engineering and is made available under
0 commit comments