Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a new version of ehcache-core that is part of the latest versions of Ehcache?

I'm trying to figure out if the latest releases of Ehcache (2.7.0, 2.7.1, 2.7.2, 2.7.4, 2.7.5, 2.8.0) actually have a new version of ehcache-core or if ehcache-core has not changed since version 2.6.6 as indicated by mvnrepository.com. 2.6.6 is the latest available from their amazon download link as well at the ehcache website (found this by replacing the numbers in the amazon download link).

Does anyone have more knowledge? My assumption is that other pieces of the code were updated in 2.7+ besides ehcache-core, and their website is just bad in assuming that each new full-release has a new version of core.

like image 419
Rick Hanton Avatar asked Jan 06 '14 23:01

Rick Hanton


1 Answers

After version 2.6, EhCache moved all their "core" stuff to a different module, kinda like how Spring separates modules. So if you go to Maven Central and search for a:ehcache-core, you'll 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 all the 'core' stuff internally. This effectively means that if you had a dependency on ehcache-core, i.e.:

<dependency>
  <groupId>net.sf.ehcache</groupId>
  <artifactId>ehcache-core</artifactId>
</dependency>

...then you can upgrade only to 2.6.9 without having to change your code. If you want to use 2.7+, you'll have to modify your code to use their new API.

like image 106
JJ Zabkar Avatar answered Sep 28 '22 13:09

JJ Zabkar