confused about module directories layout in java 9

Answered

 I thought that there may be a standard for source-code directories layout in Java 9:

in a project you may have various java9 modules: each module having its own top directory named for instance "com.mycompany.myapp"

in this top directory you had the module-info.java and the top directory for packages (so "com" directory and sub-directories below)

I didn' t found a way to have this under IntelliJ. how come? (for instance no way to have a menu for module-info.java in com.mycompany.myapp though I wanted it to be a module directory; when willing to build the module the menus offer to build a module which has the name of the project ... which is NOT a module )

 

lost! thanks for any hint

 

1
2 comments
Avatar
Permanently deleted user

ok it's the use of directories "content root" "module file location" which is not exactly clear (though documented ... examples with pictures should be welcomed)

now something

if you create your own project structure (in my case under the project directory directory com.something.someapp which contains the module-info and packages when choosing this module directory IntelliJ recreates another directory  with name com.something.someapp  on top of mine! confusing! you should document the fact that creating a module out of existing source means "not existing module sources" -just package directory structure-!)

0

Please sign in to leave a comment.