Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

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

Actually setting org.lcsim.cacheDir in this way does not work, setting it via MAVEN_OPTS works, but maybe there is a better way
No Format

mvn -Dorg.
Code Block
title~/build.properties

maven.home.local=/scratch/.maven
org.lcsim.cacheDir=/scratchmy/.lcsim
Note
titleFix Me
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.