Maven annotation processing fails with JDK9-ea+138

Alan Bateman Alan.Bateman at oracle.com
Wed Oct 5 07:04:24 UTC 2016


On 05/10/2016 07:24, Christian Beikov wrote:

> So --add-modules didn't work, I still had the same exception. That's 
> because the annotation processor is trying to instantiate classes from 
> that module. When trying -J--add-modules it says: invalid flag: 
> -J--add-modules=java.xml.bind
>
> Any ideas?
If this is just the annotation processor using a type in module 
java.xml.bind then specifying -J--add-modules=java.xml.bind to javac 
should do it. Can you paste the command into a reply?

-Alan


More information about the jigsaw-dev mailing list