vruusmann commented on issue #23890: [SPARK-26986][ML] Add JAXB reference impl to build for Java 9+ URL: https://github.com/apache/spark/pull/23890#issuecomment-468299922 @srowen Some observations about building and deploying JPMML-Model plus GlassFish Metro combination on Java SE 8, 9, 10 and 11: http://openscoring.io/blog/2019/02/28/jpmml_model_api_configuring_jaxb_dependency TLDR: I would argue that the following three library dependencies are completely unnecessary for Apache Spark's "native PMML exporter" use case: - `com.sun.xml.fastinfoset:FastInfoset` - `org.glassfish.jaxb:txw2` - `org.jvnet.staxex:stax-ex` Sample declaration: ```xml <dependency> <groupId>org.glassfish.jaxb</groupId> <artifactId>jaxb-runtime</artifactId> <version>2.3.2</version> <exclusions> <exclusion> <groupId>com.sun.xml.fastinfoset</groupId> <artifactId>FastInfoset</artifactId> </exclusion> <exclusion> <groupId>org.glassfish.jaxb</groupId> <artifactId>txw2</artifactId> </exclusion> <exclusion> <groupId>org.jvnet.staxex</groupId> <artifactId>stax-ex</artifactId> </exclusion> </exclusions> </dependency> ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
