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.html) 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
No Format | ||
---|---|---|
mvn -Dorg. | ||
Code Block | ||
| ||
maven.home.local=/scratch/.maven org.lcsim.cacheDir=/scratchmy/.lcsim | ||
Note | ||
| ||
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.