LaurentG
LaurentG

Reputation: 11787

EhCache 2.10.x is very heavy

Using Maven, I updated our Hibernate version to 5.x and it comes now transitive with EhCache 2.10.x. This version is very heavy (about 10 Mb). This is annoying in a small application. The JAR includes lot of .class files from J2EE, like javax.servlet. Is there somewhere a slim EhCache 2.10.x version of the JAR? Or how could I solve the problem?

Upvotes: 2

Views: 575

Answers (1)

khmarbaise
khmarbaise

Reputation: 97457

If you see only ehcache I can only see a single transitive dependency which is slf4j....

[INFO] +- net.sf.ehcache:ehcache:jar:2.10.6:compile
[INFO] |  \- org.slf4j:slf4j-api:jar:1.7.25:compile

but what I can see is that inside the ehcache jar file all those mentioned classes are included which is really bad...I would file in a ticket at the ehcache project...

Upvotes: 1

Related Questions