Skip to content

Commit 44176e9

Browse files
committed
Explicit jaxb dependencies so that biojava can compile/run in all jdks up to 11
1 parent d04c6e4 commit 44176e9

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

biojava-structure/pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,24 @@
6262
<version>1.1.0</version>
6363
</dependency>
6464

65+
<!-- JAXb explicit dependency is needed since Java 9. See https://stackoverflow.com/questions/43574426/how-to-resolve-java-lang-noclassdeffounderror-javax-xml-bind-jaxbexception-in-j
66+
Note versions are set in parent pom in dependency management section -->
6567
<dependency>
6668
<groupId>javax.xml.bind</groupId>
6769
<artifactId>jaxb-api</artifactId>
6870
</dependency>
71+
<dependency>
72+
<groupId>com.sun.xml.bind</groupId>
73+
<artifactId>jaxb-core</artifactId>
74+
</dependency>
75+
<dependency>
76+
<groupId>com.sun.xml.bind</groupId>
77+
<artifactId>jaxb-impl</artifactId>
78+
</dependency>
79+
<dependency>
80+
<groupId>javax.activation</groupId>
81+
<artifactId>activation</artifactId>
82+
</dependency>
6983

7084
<!-- logging dependencies (managed by parent pom, don't set versions or
7185
scopes here) -->

pom.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,21 @@
512512
<artifactId>jaxb-api</artifactId>
513513
<version>2.3.0</version>
514514
</dependency>
515+
<dependency>
516+
<groupId>com.sun.xml.bind</groupId>
517+
<artifactId>jaxb-core</artifactId>
518+
<version>2.3.0</version>
519+
</dependency>
520+
<dependency>
521+
<groupId>com.sun.xml.bind</groupId>
522+
<artifactId>jaxb-impl</artifactId>
523+
<version>2.3.0</version>
524+
</dependency>
525+
<dependency>
526+
<groupId>javax.activation</groupId>
527+
<artifactId>activation</artifactId>
528+
<version>1.1.1</version>
529+
</dependency>
515530
</dependencies>
516531
</dependencyManagement>
517532

0 commit comments

Comments
 (0)