How should I name my java 9 module?
Suppose I have a libraryid = org ABC and artifactid = libraries of MyLibrary The recommended name for the module name is: MyLibrary or org abc. myLibrary? Is there any naming scheme for official guidelines?
Solution
For some time, there have been two different views on your problem, but in the process of module system development, the community has solved the reverse DNS method
Unique module name – reverse DNS
Here, it is assumed that the module name should be globally unique In view of this goal, the most practical method is to follow the package naming policy and reverse the domain name associated with the maintainer The State of the Module System says this:
In addition, mark Reinhold writes:
This is clear and shared by other Java experts like Stephen coleborne
Module larger than artifact
For some time (early 2016), there was another recommendation The JDK team said that module names may not be unique because "modules are more abstract than the artifacts that define them." Mark Reinhold writes:
In addition, having a module name that does not include a domain will allow the module to be exchanged with another implementation as long as it has the same name (and, of course, implements the same public API)
In the above email, Reinhold recorded his opinion changes:
outline
The jury is publicly opposed to DNS in the public