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…
Tag: java-platform-module-system
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 au…
Where to place module-info.java using Java 9?
I have an OSGI application and I have around 30 bundles (jar files). Today I decided to see how it works/if it works with Java 9. So I started my application and got After some reading I added command line option and created file module-info.java with the following content: And I have two questions. Where sho…
Why did Java 9 introduce the JMOD file format?
Java 9 has three ways to package compiled code in files: JAR JMOD JIMAGE JIMAGE is optimized for speed and space and used by the JVM at runtime so it makes sense why JIMAGE was introduced. JIMAGE files are not supposed to be published to maven repos or used at compile or link time. The docs claim that JMOD ca…