CODERU is a Java code quality tool to enforce design quality in respect to packages (and therefore modules) dependencies.
The Java language is lacking a module concept. CODERU is an approach to close the gap.
The approach relies on reserved package names, and the allowed dependency rules between them are expressed in a general way.
It includes a Maven plugin for checking your code for rule conformance.