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?
Asked
Active
Viewed 410 times
1

LaurentG
- 11,128
- 9
- 51
- 66
1 Answers
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...

khmarbaise
- 92,914
- 28
- 189
- 235
-
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 Feb 13 '19 at 07:59