Java版 - Maven shade plugin question |
|
|
|
|
|
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
|
|
|
|
|
|