@@ -32,21 +32,59 @@ implemented by an endpoint on the server.
3232
3333## QuickStart
3434
35- To use the API in your maven project, include the following in your pom.xml:
35+ To use the API in your [ Maven ] ( https:// maven.apache.org/ ) project, include the following in your pom.xml file :
3636
3737 <dependency>
3838 <groupId>com.marklogic</groupId>
3939 <artifactId>marklogic-client-api</artifactId>
4040 <version>6.0.0</version>
4141 </dependency>
4242
43- For gradle projects, use gradle 4.x+ and include the following:
43+ To use the API in your [ Gradle ] ( https://gradle.org/ ) project, include the following in your build.gradle file :
4444
4545 dependencies {
46- compile "com.marklogic:marklogic-client-api:6.0.0"
46+ implementation "com.marklogic:marklogic-client-api:6.0.0"
4747 }
4848
49- Read [ The Java API in Five Minutes] ( http://developer.marklogic.com/try/java/index )
49+ Next, read [ The Java API in Five Minutes] ( http://developer.marklogic.com/try/java/index ) to get started.
50+
51+ ### Including JAXB support
52+
53+ If you are using Java 11 or higher (including Java 17) and you wish to use [ JAXB] ( https://docs.oracle.com/javase/tutorial/jaxb/intro/ )
54+ with the Java Client, you'll need to include JAXB API and implementation dependencies as those are no
55+ longer included in Java 11 and higher.
56+
57+ For Maven, include the following in your pom.xml file:
58+
59+ <dependency>
60+ <groupId>javax.xml.bind</groupId>
61+ <artifactId>jaxb-api</artifactId>
62+ <version>2.3.1</version>
63+ </dependency>
64+ <dependency>
65+ <groupId>org.glassfish.jaxb</groupId>
66+ <artifactId>jaxb-runtime</artifactId>
67+ <version>2.3.2</version>
68+ </dependency>
69+ <dependency>
70+ <groupId>org.glassfish.jaxb</groupId>
71+ <artifactId>jaxb-core</artifactId>
72+ <version>2.3.0.1</version>
73+ </dependency>
74+
75+ For Gradle, include the following in your build.gradle file (this can be included in the same ` dependencies ` block
76+ as the one that includes the marklogic-client-api dependency):
77+
78+ dependencies {
79+ implementation "javax.xml.bind:jaxb-api:2.3.1"
80+ implementation "org.glassfish.jaxb:jaxb-runtime:2.3.2"
81+ implementation "org.glassfish.jaxb:jaxb-core:2.3.0.1"
82+ }
83+
84+ You are free to use any implementation of JAXB that you wish, but you need to ensure that you're using a JAXB
85+ implementation that corresponds to the ` javax.xml.bind ` interfaces. JAXB 3.0 and 4.0 interfaces are packaged under
86+ ` jakarta.xml.bind ` , and the Java API does not yet depend on those interfaces. You are thus free to include an
87+ implementation of JAXB 3.0 or 4.0 in your project for your own use; it will not affect the Java API.
5088
5189### Learning More
5290
0 commit comments