module name convention
forax at univ-mlv.fr
Sat Sep 19 17:02:15 UTC 2015
Mani from AdoptAJSR has a very good question at the end of this document:
"Namespace for modules overlap with that of packages - can be confusing after looking at a lot of module descriptors.
When exporting, excluding, using, etc… of modules we do not say this module is dependent on that,
but modules dependencies are resolved by the resolving which packages they are dependent on (uses this package, exports that package).
And package names look similar to or can look the same as module names, although they are different concepts."
Both Eclipse and Maven use package name or at least package prefix as convention to name module and as Mani said it really confusing when you write a module-info file.
Given that the name of the JDK modules doesn't respect that convention but still use '.' to separate the different components,
I wonder if we should not try to come with a convention for module name that allow to easily disambiguate between package name and module name.
Obviously the other solution is to prefix a name by "package" or "module".
More information about the jpms-spec-observers