DataONEorg / d1_common_java

The d1_common_java library migrated from subversion
Other
0 stars 1 forks source link

For future reference - Java > v11 #2

Open artntek opened 3 months ago

artntek commented 3 months ago

Just some notes for our future selves, when we update from java 8:

This breaks with Java > 11 (found when working on d1_portal, which has this as a dependency)

org/dataone/service/util/TypeMarshaller.java:299

javax.xml.bind.JAXBException

/Users/brooke/.m2/repository/javax/xml/bind/jaxb-api/2.2.3/jaxb-api-2.2.3.jar!/javax/xml/bind/ContextFinder.class

return newInstance(classes, properties, "com.sun.xml.internal.bind.v2.ContextFactory");

com.sun.xml.internal.bind.v2.ContextFactory no longer available after JDK 11

mbjones commented 3 months ago

@artntek See this thread for details on how to use Jackson as a replacement for jaxb:

https://github.com/NCEAS/metadig-engine/issues/308#issuecomment-1670459740