Maven annotation processing fails with JDK9-ea+138

Jonathan Gibbons jonathan.gibbons at oracle.com
Tue Oct 4 19:39:38 UTC 2016


If the annotation processor is trying to execute code in that module, 
you may want -J--add-modules=java.xml.bind to add the module to the 
javac runtime environment, as compared to the compilation environment

-- Jon


On 10/4/16 11:48 AM, Stephen Felts wrote:
> In JDK9, the java.xml.bind module is hidden by default.
> You can normally turn it on by specifying --add-modules=java.xml.bind
>
>
> -----Original Message-----
> From: Christian Beikov [mailto:christian.beikov at gmail.com]
> Sent: Tuesday, October 04, 2016 2:22 PM
> To: jigsaw-dev at openjdk.java.net
> Subject: Maven annotation processing fails with JDK9-ea+138
>
> Hello,
>
> I have been trying out to build one of my Maven projects with JDK
> 9-ea+138 and it failed.
> Specifically I got java.lang.NoClassDefFoundError:
> javax/xml/bind/JAXBException during annotation processing.
>
> I am using the org.bsc.maven:maven-processor-plugin:2.2.4 and the annotation processor is the hibernate metamodel generator.
> Is this a known issue or am I missing some configuration?
>
> Regards,
> Christian



More information about the jigsaw-dev mailing list