After version 2.6, EhCache moved all its βcoreβ things to another module, sort of like Spring separates the modules. Therefore, if you go to Maven Central and search a:ehcache-core , you will see something like:
Group ID Artifact ID Latest Version ======================= ============ ============== net.sf.ehcache.internal ehcache-core 2.8.3 net.sf.ehcache ehcache-core 2.6.9
Since after 2.6.9 they moved the entire "core" inside. This actually means that if you had a dependency on ehcache-core , that is:
<dependency> <groupId>net.sf.ehcache</groupId> <artifactId>ehcache-core</artifactId> </dependency>
... then you can only upgrade to 2.6.9 without changing the code. If you want to use 2.7+, you will have to change your code to use your new API.
source share