java - Maven shade - repackage dependecy jar with custom configuration -


enter image description here

i have common service packaged jar it's dependencies.

consumer1, consumer2, consumer3 provides different configuration common_service. best way repackage common_service it's jar content , in addition, bundle configuration it.

final output, on consumer1 give :

  • consumer1-shaded.jar (without common-service)
  • consumer1-common-service.jar (only common-service custom configuration)

consumer2 give :

  • consumer2-shaded.jar (without common-service)
  • consumer2-common-service.jar (only common-service custom configuration)

i tried maven shade repackage common_service, need explicitly include dependencies of common service in consumer., why should consumer aware of common service contents ? there direct way take jar, add config , repackage ?

to want, best bet have 4 maven modules. common_service module no longer produce shaded jar, regular jar. consumer_1 module include configuration files , have common_service dependency, , produce shaded jar. consumer_2 , consumer_3 modules set similar consumer_1 module.


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -