MedKhem / grobid-dictionaries

31 stars 7 forks source link

JAXB dependency #39

Open Moarc opened 4 years ago

Moarc commented 4 years ago

You may want to look into adding a dependency for JAXB. From what I get, it's been removed from the default JDK distribution as of Java 9, and trying to build grobid-dictionaries with that version of Java (or newer) results in errors. For what it's worth, adding something like

<dependency>
  <groupId>javax.xml.bind</groupId>
  <artifactId>jaxb-api</artifactId>
  <version>2.3.1</version>
</dependency>

<dependency>
  <groupId>org.glassfish.jaxb</groupId>
  <artifactId>jaxb-runtime</artifactId>
  <version>2.3.1</version>
</dependency>

to pom.xml (as per https://stackoverflow.com/questions/43574426/how-to-resolve-java-lang-noclassdeffounderror-javax-xml-bind-jaxbexception-in-j) allows grobid-dictionaries to build and run properly.