Jar file naming conventions

2019-01-24 01:05发布

问题:

Are there any industry standard conventions for naming jar files?

回答1:

I have been using

*Informative*-*name*-*M*.*m*.*b*.jar

Where:

M = major version number (changed when backward compatibility is not necessarily maintained)

m = minor version number (feature additions etc)

b = build number (for releases containing bug fixes)



回答2:

If your jar is used for JEE then these guidelines apply:

The module name is used as the EJB archive name. By default, the module name should be based on the package name and should be written in all-lowercase ASCII letters. In case of conflict, the module name should be a more specific version (including other part of the package name):

EJB archive: -ejb.jar

EJB client archive: -ejb-client.jar