Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: maven 2 updates; headings; new info on setting cacheDir

Setting the Local Repository

By default maven puts all of the jar files corresponding to the dependencies it downloads into the ~/.maven 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 creating a ~/build.properties file and including a definition of maven.home.local (see http://maven.apache.org/reference/properties.htmlImage Removed) 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 cacheIn addition the lcsim tests download data files needed for testing. 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.

So an example of a suitable ~/build.properties directory would be

Code Block
title~/build.properties

maven.home.local=/scratch/.maven
org.lcsim.cacheDir=/scratch/.lcsim

...

titleFix Me

...

No Format

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

Code Block

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 http://www.lcsim.org/software/geomconverter/apidocs/org/lcsim/util/cache/FileCache.html#setCacheDirectory(java.io.File) in your own jobs.