Browse Source

Make act compatible with Java 9 by adding javax.xml.bind dependency (#3108)

Michael Hixson 7 years ago
parent
commit
703746e27f
1 changed files with 13 additions and 0 deletions
  1. 13 0
      frameworks/Java/act/pom.xml

+ 13 - 0
frameworks/Java/act/pom.xml

@@ -219,6 +219,19 @@
       <version>${morphia.version}</version>
       <version>${morphia.version}</version>
     </dependency>
     </dependency>
 
 
+    <!-- The javax.xml.bind classes are required by this application, and they
+         are included by default in Java 8 but not in Java 9.  We could include
+         them in Java 9 by adding "add-modules java.xml.bind" to the command
+         line arguments, but those arguments are not supported in Java 8 (and it
+         fails on unsupported arguments rather than ignoring them). -->
+    <dependency>
+      <groupId>javax.xml.bind</groupId>
+      <artifactId>jaxb-api</artifactId>
+      <!-- Version 2.2.12 is compatible with both Java 8 and Java 9, while
+           version 2.3.0 is not compatible with Java 8. -->
+      <version>2.2.12</version>
+    </dependency>
+
   </dependencies>
   </dependencies>
 
 
   <profiles>
   <profiles>