Skip to content
Advertisement

Tag: java-platform-module-system

What does “Required filename-based automodules detected.” warning mean?

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 next warning: [WARNING] * Required filename-based automodules detected. Please don’t publish this project to a public artifact repository! * What does it mean? Is that because I have only a few modules with module-info.java and not the whole project? Answer Automatic module

Is it possible to mix –class-path and –module-path in javac (JDK 9)?

When I compile a module that depends on other modules I’ve compiled previously I have to specify the –module-path <directory> option. This makes modules I depend on visible. But at the same time I would also like to make some non-modular Jar files visible. However if don’t make them automatic modules and just specify the –class-path some.jar right next to

Advertisement