青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

++wythern++

X presents Y for a better Z

What is shade jar, and what is its purpose.

https://stackoverflow.com/questions/13620281/what-is-the-maven-shade-plugin-used-for-and-why-would-you-want-to-relocate-java


Uber JAR, in short, is a JAR containing everything.

Normally in Maven, we rely on dependency management. An artifact contains only the classes/resources of itself. Maven will be responsible to find out all artifacts (JARs etc) that the project depending on when the project is built.

An uber-jar is something that take all dependencies, and extract the content of the dependencies and put them with the classes/resources of the project itself, in one big JAR. By having such uber-jar, it is easy for execution, because you will need only one big JAR instead of tons of small JARs to run your app. It also ease distribution in some case.

Just a side-note. Avoid using uber-jar as Maven dependency, as it is ruining the dependency resolution feature of Maven. Normally we create uber-jar only for the final artifact for actual deployment or for manual distribution, but not for putting to Maven repository.


Update: I have just discovered I haven't answered one part of the question : "What's the point of renaming the packages of the dependencies?". Here is some brief updates and hopefully will help people having similar question.

Creating uber-jar for ease of deployment is one use case of shade plugin. There are also other common use cases which involve package renaming.

For example, I am developing Foo library, which depends on a specific version (e.g. 1.0) of Bar library. Assuming I cannot make use of other version of Bar lib (because API change, or other technical issues, etc). If I simply declare Bar:1.0 as Foo's dependency in Maven, it is possible to fall into a problem: A Qux project is depending on Foo, and also Bar:2.0 (and it cannot use Bar:1.0 because Qux needs to use new feature in Bar:2.0). Here is the dilemma: should Qux use Bar:1.0 (which Qux's code will not work) or Bar:2.0 (which Foo's code will not work)?

In order to solve this problem, developer of Foo can choose to use shade plugin to rename its usage of Bar, so that all classes in Bar:1.0 jar are embedded in Foo jar, and the package of the embedded Bar classes is changed from com.bar to com.foo.bar. By doing so, Qux can safely depends on Bar:2.0 because now Foo is no longer depending on Bar, and it is using is own copy of "altered" Bar located in another package.

posted on 2017-06-19 11:23 wythern 閱讀(289) 評論(0)  編輯 收藏 引用

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            久久福利影视| 日韩亚洲欧美在线观看| 香港成人在线视频| 国产欧美日韩激情| 久久黄色小说| 欧美freesex交免费视频| 亚洲高清不卡| 99国产一区二区三精品乱码| 欧美性猛交视频| 久久久久久午夜| 亚洲欧美日韩综合| 在线电影一区| 亚洲视频中文| 在线观看欧美日韩| 亚洲精品一区二区三| 国产精品黄色在线观看| 久久精品免费观看| 欧美激情一二三区| 欧美18av| 亚洲字幕一区二区| 久久久久免费| 中国成人黄色视屏| 久久国产精品久久w女人spa| 亚洲国产免费看| 亚洲午夜激情| 亚洲欧洲精品一区二区| 亚洲欧美韩国| 一本色道久久综合一区| 亚洲无毛电影| 日韩一区二区福利| 欧美中文在线观看| 亚洲在线网站| 欧美r片在线| 久久久久久久久岛国免费| 欧美激情无毛| 久久综合五月| 国产精品影片在线观看| 亚洲欧洲在线一区| 国内久久精品视频| 亚洲欧美亚洲| 亚洲一区二区三区四区五区午夜| 久久久亚洲一区| 欧美一二区视频| 欧美另类视频在线| 欧美凹凸一区二区三区视频| 国产美女精品人人做人人爽| 一本色道久久综合亚洲二区三区| 亚洲黄色成人久久久| 欧美一区二区三区在线观看视频 | 亚洲一区二区在线免费观看| 91久久在线观看| 久久亚洲私人国产精品va| 欧美一区二区三区在线看| 欧美日韩一区视频| 亚洲精品一区久久久久久| 亚洲国产一区二区三区高清 | 一区二区三区成人精品| 日韩一级免费观看| 欧美精品免费在线观看| 欧美激情一区| 亚洲精品国产日韩| 欧美黑人在线观看| 亚洲欧洲精品一区二区三区不卡 | 国产精品成人v| 在线视频日韩| 午夜精品区一区二区三| 国产精品久久二区二区| 亚洲午夜91| 久久福利毛片| 精品动漫3d一区二区三区免费| 欧美一区三区三区高中清蜜桃 | 亚洲国产成人porn| 欧美不卡激情三级在线观看| 亚洲第一黄网| 99re8这里有精品热视频免费| 欧美黄色片免费观看| 亚洲每日在线| 欧美一区1区三区3区公司| 国产日韩一级二级三级| 久久国产精品久久久久久久久久| 久久久另类综合| 亚洲激情av| 欧美日韩国产在线看| 亚洲一区二三| 欧美三区在线视频| 午夜免费在线观看精品视频| 久久综合福利| 一本不卡影院| 国产麻豆视频精品| 久久免费99精品久久久久久| 亚洲片区在线| 久久电影一区| 亚洲最新合集| 国产亚洲制服色| 欧美国产视频日韩| 亚洲欧美日本视频在线观看| 欧美99在线视频观看| 亚洲天天影视| 影音先锋在线一区| 欧美婷婷在线| 久久亚洲一区二区| 亚洲午夜久久久久久久久电影院 | 性色av一区二区怡红| 欧美激情按摩| 久久国产福利| 亚洲毛片网站| 国产综合色产在线精品| 欧美日韩一区二区国产| 久久久中精品2020中文| 夜夜嗨av一区二区三区四季av | 欧美中文字幕视频| 99国产精品久久久久老师 | 国产精品久久久99| 免费成人黄色av| 久久成人av少妇免费| 一区二区高清视频| 欧美高清在线| 最新高清无码专区| 亚洲精品免费看| 国产精品丝袜xxxxxxx| 欧美高潮视频| 久久成人综合视频| 亚洲天堂第二页| 日韩午夜黄色| 亚洲日本成人网| 欧美国内亚洲| 欧美高清免费| 免费观看亚洲视频大全| 久久久亚洲人| 久久偷看各类wc女厕嘘嘘偷窃| 亚洲欧美日韩精品久久久| 夜夜精品视频一区二区| 亚洲精品一品区二品区三品区| 在线观看欧美一区| 韩国欧美一区| 狠狠久久亚洲欧美| 韩国v欧美v日本v亚洲v | 亚洲午夜在线观看视频在线| 亚洲精品中文字幕有码专区| 亚洲高清视频的网址| 欧美黄色一级视频| 亚洲第一黄网| 亚洲欧洲精品天堂一级| 亚洲三级性片| 这里只有精品电影| 亚洲小说欧美另类社区| 亚洲与欧洲av电影| 小处雏高清一区二区三区| 亚洲欧美日韩专区| 久久黄色小说| 免费短视频成人日韩| 欧美va亚洲va国产综合| 欧美激情精品久久久六区热门 | 亚洲婷婷综合色高清在线 | 欧美性淫爽ww久久久久无| 国产精品久久久99| 国产欧美日韩另类视频免费观看| 国产精品中文在线| 精品盗摄一区二区三区| 亚洲精品乱码久久久久| 亚洲午夜激情在线| 午夜在线精品| 蜜桃av综合| 亚洲人成网站999久久久综合| 夜夜爽av福利精品导航| 亚洲欧美另类国产| 六月婷婷久久| 欧美午夜免费影院| 激情综合色丁香一区二区| 亚洲经典在线| 亚洲欧美日韩精品综合在线观看| 欧美中日韩免费视频| 欧美高清视频一区| 一区二区三区四区五区视频| 欧美一区二区三区另类| 免播放器亚洲一区| 国产精品天天看| 91久久精品日日躁夜夜躁国产| 在线综合亚洲| 久久综合中文字幕| 中文精品一区二区三区| 久久久久久香蕉网| 国产精品久久久久久久久果冻传媒| 国产视频一区欧美| 夜夜精品视频| 麻豆精品视频| 亚洲一级黄色片| 欧美激情bt| 黄色欧美成人| 校园春色综合网| 亚洲人成啪啪网站| 久久久精品久久久久| 国产精品乱码| 亚洲免费电影在线观看| 久久综合亚州| 欧美一级二级三级蜜桃| 欧美午夜在线一二页| 亚洲精选在线观看| 欧美69wwwcom| 久久高清国产|