Nam G VU
Nam G VU

Reputation: 35394

The differences between normal jar and `original` jar when calling `mvn package`?

I'm following maven tutorial from springsource here, and after calling mvn package commmand, we get the below three outcomes.

For the shaded jar package, we can understand it as an all-dependencies-icluded version for the jar.

My question is, what is the differences between the normal jar and the original jar when calling mvn package ?

enter image description here

Upvotes: 6

Views: 5373

Answers (1)

Iker Aguayo
Iker Aguayo

Reputation: 4115

The shaded jar is the jar with all the dependencies that are in your pom.xml. The original, is the jar without that dependencies, the jar that would be generated if that shade plugin would not be there

Upvotes: 6

Related Questions