The fix to
MJAVADOC-498 causes the command line flag `--class-path` to be used on Java 8, a flag that is not recognised. This happens when the project contains `module-info.java`, but the module-info file is excluded by the configuration of the plugin.
The problem is here:
where the code checks whether `src/main/java/module-info.java` exists without considering whether the file has been excluded by configuration. (I am simply trying to setup a build that uses Java 9 tooling on Java 9 and Java 8 tooling when running on Java 8)
There is no workaround to this in v3.0.0 that I can see, so I have to rollback to v3.0.0-M1. The solution is to check the includes/excludes when trying to obtain the module-info file. Or to check what version of the Javadoc tool is being used (as per