当前在线人数16200
首页 - 分类讨论区 - 电脑网络 - 爪哇娇娃版 - 同主题阅读文章

此篇文章共收到打赏
0

  • 10
  • 20
  • 50
  • 100
您目前伪币余额:0
未名交友
[更多]
[更多]
Maven shade plugin question
[版面:爪哇娇娃][首篇作者:coconut] , 2016年05月21日16:49:25 ,476次阅读,1次回复
来APP回复,赚取更多伪币 关注本站公众号:
[分页:1 ]
coconut
进入未名形象秀
我的博客
[回复] [回信给作者] [本篇全文] [本讨论区] [修改] [删除] [转寄] [转贴] [收藏] [举报] [ 1 ]

发信人: coconut (向唐僧大师学习中), 信区: Java
标  题: Maven shade plugin question
发信站: BBS 未名空间站 (Sat May 21 16:52:45 2016, 美东)


I have a multi-module project

parent
|
+-- core
|
+-- extension

Both core and extension shares a lot of 3rd party dependencies.  I
can create a uber jar for core to include all the files that core
needs.  Then in the extension module, I do not want to include any
files already included in the core jar.  I want the extension module
to only include the ones it has uniquely.

How to do that without having to individually specifying them for
extension shade configuration?


--

Imagine the most witty and concise verbal gem ever uttered.
Now imagine I said it, and quoted it here.


http://www.estiah.com/user/register/index/id/36252



※ 来源:·BBS 未名空间站 网址:mitbbs.com 移动:在应用商店搜索未名空间·[FROM: 96.]

 
Foxman
进入未名形象秀
我的博客
[回复] [回信给作者] [本篇全文] [本讨论区] [修改] [删除] [转寄] [转贴] [收藏] [举报] [ 2 ]

发信人: Foxman (今狐冲), 信区: Java
标  题: Re: Maven shade plugin question
发信站: BBS 未名空间站 (Fri Jun 24 11:13:01 2016, 美东)

You don't need to do anything. When you create a .jar file using maven it
will not include any dependencies (unless you tweak it). The dependencies
are external and specified by pom.xml
【 在 coconut (向唐僧大师学习中) 的大作中提到: 】
: I have a multi-module project
: parent
: |
: +-- core
: |
: +-- extension
: Both core and extension shares a lot of 3rd party dependencies.  I
: can create a uber jar for core to include all the files that core
: needs.  Then in the extension module, I do not want to include any
: files already included in the core jar.  I want the extension module
: ...................



--
※ 来源:·WWW 未名空间站 网址:mitbbs.com 移动:在应用商店搜索未名空间·[FROM: 63.]

[分页:1 ]
[快速返回] [ 进入爪哇娇娃讨论区] [返回顶部]
回复文章
标题:
内 容:

未名交友
将您的链接放在这儿

友情链接


 

Site Map - Contact Us - Terms and Conditions - Privacy Policy

版权所有,未名空间(mitbbs.com),since 1996