Migrating maven project to modules - ignore module-info.java
问题 We're currently migrating to JPMS setting up module-info.java for all modules in a maven multi-module project. For us it would be ideal to have module-info.java already reside in "dev" branch but not affecting any builds. So idea is to exclude module-info.java by default and include it only in specific maven profiles. Does that make sense? Anyway, doesn't work for me, module-info.java is picked up even though in excludes section as follows: <plugin> <groupId>org.apache.maven.plugins</groupId>