我正在阅读 Maven 文档并偶然发现了这个名字uber-jar
.
一个是什么意思uber-jar
是什么意思以及它的特点/优点是什么?
Über
德语单词是above
or over
(它实际上与英语同源over
).
Hence, in this context, an uber-jar is an "over-jar", one level up from a simple JAR (a), defined as one that contains both your package and all its dependencies in one single JAR file. The name can be thought to come from the same stable as ultrageek, superman, hyperspace, and metadata, which all have similar meanings of "beyond the normal".
优点是您可以分发您的 uber-jar 而根本不用关心依赖项是否安装在目的地,因为您的 uber-jar 实际上has没有依赖性。
uber-jar 中你自己的东西的所有依赖项都是also在那个超级罐子里。这些依赖项的所有依赖项也是如此。等等。
(a) I probably shouldn't have to explain what a JAR is to a Java developer but I'll include it for completeness. It's a Java archive, basically a single file that typically contains a number of Java class files along with associated metadata and resources.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)