什么是超广口瓶? [英] What is an uber jar?

查看:90
本文介绍了什么是超广口瓶?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在阅读Maven文档,并碰到了'uber-jar'这个名字.

I am reading Maven documentation and came across the name 'uber-jar'.

uber-jar是什么意思,它的功能/优点是什么?

What does an uber-jar mean and what are its features/advantages?

推荐答案

Überaboveover的德语单词(实际上与英语over同源).

Über is the German word for above or over (it's actually cognate with the English over).

因此,在这种情况下,uber-jar是一个"over-jar",它比简单的JAR (a)高一个级别,JAR (a)定义为同时包含您的软件包 及其所有依赖项都保存在一个JAR文件中.可以认为该名称来自与ultrageek,超人,超空间和元数据相同的稳定器,它们的含义均类似超出正常范围".

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实际上 没有依赖项.

The advantage is that you can distribute your uber-jar and not care at all whether or not dependencies are installed at the destination, as your uber-jar actually has no dependencies.

uber-jar中您自己的东西的所有依赖项也在该uber-jar中.这些依赖项的所有依赖项也是如此.依此类推.

All the dependencies of your own stuff within the uber-jar are also within that uber-jar. As are all dependencies of those dependencies. And so on.

(a)我可能不必必须向Java开发人员解释什么是JAR,但是为了完整起见,我将其包括在内.这是一个Java档案,基本上是一个文件,通常包含许多Java类文件以及相关的元数据和资源.

(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.

这篇关于什么是超广口瓶?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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