Setting the Local Repository

By default maven puts all of the jar files corresponding to the dependencies it downloads into the ~/.m2 directory. These files sometimes take up a significant amount of space which could make you exceed quota on a shared unix system.

You can change this default behavior by setting a variable called localRepository in your maven 2 build profile.

Setting the Cache Directory

In addition, the lcsim test programs download data files to a local file cache. These are stored in ~/.cache by default. The root of the cache directory can be controlled by setting the java system property org.lcsim.cacheDir.

mvn -Dorg.lcsim.cacheDir=/my/cacheDir

The cache directory can also be set in other ways, such as a property in the the lcsim xml recon format or by calling the method setCacheDirectory() in your own jobs.