Thank you for investigating - looking more closely, the problem I was
with what gets passed to DependenciesSolver:
which I think means that DependenciesSolver will always get called with the
--generate-javadoc and --run-tests options if GEN_JAVADOC and RUN_TESTS
have any non-empty value, even "false". So whilst tests and the javadoc
may be disabled, the dependencies for tests and generating docs are pulled
anyway. This is what my patch addresses.
This is the maintainer address of Debian's Java team
debian-j...@lists.debian.org for discussions and questions.