ChrWeissDe / ace-maven-plugin

Apache License 2.0
1 stars 0 forks source link

maven clean install for ace-maven-plugin with JDK >= Java 9 fails ( #6

Open ChrWeissDe opened 1 year ago

ChrWeissDe commented 1 year ago

Compiling the plugin with a JDK >= version 9 fails. Typical error message is: Failed to execute goal org.codehaus.mojo:jaxb2-maven-plugin:1.6:xjc (eclipseProject) on project ace-maven-plugin: Execution eclipseProject of goal org.codehaus.mojo:jaxb2-maven-plugin:1.6:xjc failed: A required class was missing while executing org.codehaus.mojo:jaxb2-maven-plugin:1.6:xjc: javax/activation/DataSource

Reason for the error is that the jaxb libraries were reorganized in Java 9 and above. Some jaxb classes were removed from the standard Java distribution.

Issue should be fixed by upgrading to a later jaxb dependency - however not tested yet.

Workaround for the moment: ensure to compile the plugin with JDK 8.

ChrWeissDe commented 1 year ago

See also the discussion in https://github.com/mojohaus/jaxb2-maven-plugin/issues/43