spring-projects-experimental / spring-boot-thin-launcher

Tools for building "thin" executable jars, with a focus on, but not exclusively for, Spring Boot
https://github.com/dsyer/spring-boot-thin-launcher
Apache License 2.0
681 stars 90 forks source link

How can I load the jar package inside the thin jar #127

Closed xtaetg closed 4 years ago

xtaetg commented 4 years ago

If I put the jars generated by the submodules into a thin jar (third-party jars are still placed outside), how can I load the jars generated by these submodules when starting the thin jar

dsyer commented 4 years ago

You just need them to be in a maven repository. Can be the local cache. What did you try that didn't work? There's a sample in this project that works for instance.

dsyer commented 4 years ago

Possible duplicate of #15?

xtaetg commented 4 years ago

I dont't want to put them in my maven repository. When I upgrade my programe,I just need to provide only one jar to my customer, otherwise I need to provider more jars and a script to put them into the maven local cache. thanks.

dsyer commented 4 years ago

Definitely a duplicate then, but the context is useful, thanks.