1

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?

1 Answer 1

1

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...

1
  • I believe you are unfortunately right. I also searched for an alternative JAR (without dependencies included) and I couldn't find any. Maybe I would have to package my own version of ehcache JAR, if I want to avoid those included dependencies.
    – LaurentG
    Commented Feb 13, 2019 at 7:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.