该版本应该出现在.jar文件的名称中吗? [英] Should the version be appeared in the name of .jar files?

查看:192
本文介绍了该版本应该出现在.jar文件的名称中吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

Jar文件命名约定

目前,我已决定标准化我的.jar文件的名称。在许多项目中,.jar文件的版本出现在名称中,例如RichFaces的-3.0.1.jar。这是一个很好的命名风格还是应该在其清单中提及.jar文件的版本?如果它更好,我应该将此样式用于我的内部发布吗?

Currently, I've decided to standardize the name of my .jar files. In many projects, the version of the .jar files appear in the name, e.g. richfaces-3.0.1.jar. Is it a good naming style or should I mention the version of the .jar file in its manifest? If it is better, should I use this style for my internal releaseses?

推荐答案

您应该在罐子中使用版本号。查看 http://mvnrepository.com/ 等页面。当您下载大量的罐子时,经常会发生两个罐子依赖于具有不同版本号的同一个库。使用jar文件中的版本号有助于工具链中使用的工具。

You should use Version numbers in your jars. Look at pages like http://mvnrepository.com/. When you download a huge number of jars it can happen quite often that two jars are dependend on the same lib with different version numbers. Using the Version number in your jar file helps tools that are used in your toolchain.

这篇关于该版本应该出现在.jar文件的名称中吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆