Direct/Manual Downloads
Ehcache 3
Ehcache 3.8 latest .jar
Ehcache 3 with clustering support
More files related to releases of Ehcache 3 are available on the project’s GitHub release page.
License (Apache 2.0), 3rd Party Licenses (Apache 2.0), Legal Notices
Ehcache 2.x
Ehcache 2.10.5 .tar.gz
For more information on this release, see the release notes.
The clustered cache samples (colorcache, events) are now only available from the Terracotta Server Open Source Kit ; look for the Terracotta Server 4.x and Older paragraph.
For JSR107 support with Ehcache 2, use the ehcache-jcache module.
Maven
Maven Snippet
Ehcache 3
To include Ehcache 3.x in your project, use:
<dependency>
<groupId>org.ehcache</groupId>
<artifactId>ehcache</artifactId>
<version>3.8.1</version>
</dependency>
Note: Be sure to substitute the version number above with the version number of Ehcache that you want to use.
Ehcache 2
To include Ehcache 2.x in your project, use:
<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache</artifactId>
<version>2.10.4</version>
<type>pom</type>
</dependency>
Note: Be sure to substitute the version number above with the version number of Ehcache that you want to use.
General Maven Info
Releases
Releases are available on Maven Central.
Ehcache publishes releases for all modules to the Sonatype Maven repository at: http://oss.sonatype.org/
You can browse the repository here › look for Ehcache 3.x under org/ehcache
and Ehcache 2.x under net/sf/ehcache
.
From there the releases are immediately synced with the Maven central repository.
Snapshots
Ehcache publishes regular snapshots for Ehcache 3.x to the Sonatype Snapshot Maven repository.
Note that snapshots are recommended for developer testing only.
You can browse the snapshot repository here › look for Ehcache 3.x under org/ehcache
.
To get snapshots you will need to add the following repository to your maven config:
<repositories>
<repository>
<id>sourceforge</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
...
</repositories>