What is an uber jar?

后端 未结 7 1227
旧时难觅i
旧时难觅i 2020-11-22 10:03

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

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

7条回答
  •  抹茶落季
    2020-11-22 10:29

    The different names are just ways of packaging java apps.

    Skinny – Contains ONLY the bits you literally type into your code editor, and NOTHING else.

    Thin – Contains all of the above PLUS the app’s direct dependencies of your app (db drivers, utility libraries, etc).

    Hollow – The inverse of Thin – Contains only the bits needed to run your app but does NOT contain the app itself. Basically a pre-packaged “app server” to which you can later deploy your app, in the same style as traditional Java EE app servers, but with important differences.

    Fat/Uber – Contains the bit you literally write yourself PLUS the direct dependencies of your app PLUS the bits needed to run your app “on its own”.

    Source: Article from Dzone

    Reposted from: https://stackoverflow.com/a/57592130/9470346

提交回复
热议问题