Why does maven jar project not contain it's dependencies?

185 views Asked by At

I have recently been working with Spring Boot and all of the jar dependencies are packaged within the Spring Boot 'uber' jar.

I have recently made a regular jar application and none of the jars are packaged within the jar, but I am still able to execute the code within the java by calling specific classes (with main methods)

Can anyone shed some light? Any similar questions I see regarding this always speak to the shade plugin

EDIT: I understand I didn't specify the shade plugin to create an uber jar, but could anyone explain why it's not needed for the majority of projects, and how the code is able to run if the dependencies are not there?

0

There are 0 answers