由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - Maven shade plugin question
相关主题
in eclipse, how do you use inter dependencies?问个关于Maven和在Jetty上跑web service test的问题
Argh, maven sucksmaven,struts求助
dependency version collision problemivy问题
jetty疑问请教一个java web application设计的问题
一个class file dependencies 太多怎么搞?帮忙看看maven 的问题
有人用过 ObjectDB in Maven 没有?maven真是个好东东
Maven's newbie questioneclipse有没有maven plugin配置的工具
Maven浅淡(一)OpenShift的配置一问
相关话题的讨论汇总
话题: extension话题: core话题: maven话题: include话题: module
进入Java版参与讨论
1 (共1页)
c*****t
发帖数: 1879
1
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?
F****n
发帖数: 3271
2
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

【在 c*****t 的大作中提到】
: 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

1 (共1页)
进入Java版参与讨论
相关主题
OpenShift的配置一问一个class file dependencies 太多怎么搞?
现在学Spring需要装Maven吗?有人用过 ObjectDB in Maven 没有?
问一个弱智问题,关于调用package或者包的Maven's newbie question
问一个spring dynamic module/OSGi的问题Maven浅淡(一)
in eclipse, how do you use inter dependencies?问个关于Maven和在Jetty上跑web service test的问题
Argh, maven sucksmaven,struts求助
dependency version collision problemivy问题
jetty疑问请教一个java web application设计的问题
相关话题的讨论汇总
话题: extension话题: core话题: maven话题: include话题: module