In my multi-module project, I created module-info.java only for few modules. And during compilation with maven-compiler-plugin:3.7.0 I\'m getting n
With the maven-compiler-plugin v3.7.0 it's an informational message. Not sure why you see it as a warning...
Here's what I get when I build my Java 10 based project with a module-info.java:
[INFO] Required filename-based automodules detected. Please don't publish this project to a public artifact repository!