Jar file naming conventions

我怕爱的太早我们不能终老 提交于 2019-12-18 03:52:41

问题


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



来源:https://stackoverflow.com/questions/119426/jar-file-naming-conventions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!