Demo project for my post Making JSR 305 Work On Java 9.
Your options for a non-modular project:
mixed_cp_0...
: fails due to missing module forjavax.annotation.Generated
mixed_cp_1...
: adds the module; fails due to split packagemixed_cp_2...
: patches the modules; succeedsmixed_cp_3...
: adds a second dependency; succeeds
If you're creating modules:
mixed_mp_0...
: depends on two modules; fails due to split packagemixed_mp_1...
: patches one of the modules; succeeds