Similar to this Gradle example, where the projects do not contain any build.gradle files.
The org.gradlex.java-module-dependencies Gradle plugin supports this for Gradle when used as settings plugin.
It sounds like this should be possible through the alternate POM syntaxes support.