How to disable the Ehcache update checker?

simply put, in your ehcache.xml configuration file, make sure you disable the updateCheck :

<ehcache updateCheck="false">

<defaultCache
        maxElementsInMemory="0"
        eternal="false"
        timeToIdleSeconds="0"
        timeToLiveSeconds="0"
        overflowToDisk="false"
        diskPersistent="false"
        />
</ehcache>

One way is to place a ehcache.xml file on your classpath with the attribute updateCheck="false" in the root tag.

For example:

<ehcache updateCheck="false">
  <defaultCache
    maxElementsInMemory="0"
    eternal="false"
    timeToIdleSeconds="0"
    timeToLiveSeconds="0"
    overflowToDisk="false"
    diskPersistent="false"/>
</ehcache>

Another way is to set an environment variable:

System.setProperty("net.sf.ehcache.skipUpdateCheck", "true");

Tags:

Ehcache