How can I segregate the application jar and dependencies?

24 views Asked by At

I've a spring-boot application with maven, the final jar is of 96MB+ and I want to reduce that jar size by excluding dependencies jars from final jar and keeping them in one remote location and redirecting the dependencies location from final jar. By removing spring-boot-maven-plugin from pom.xml, I've generated the jar which of size 3MB+ but that is not able to run, giving error no main manifest attribute, in target\abc.jar. I understood that it's not executable. Please guide me how can I have the dependencies in a remote location and redirect it from application jar and how can I make the jar executable?

I tried segregating application jar and dependencies. I'm expecting a separate executable application jar and dependencies.

0

There are 0 answers