March 14, 2008

Maven, Hudson and Windows Default User Gives Disk Space Issues

When you deploy Hudson to Apache Tomcat and run Tomcat as default user maven sets the repository to be ~/.m2/repository (which is normally C:\Documents and Settings\Default User.m2/repository).  Unfortunately windows will also copy that directory every time a new user logs on to that box.  So in our case we ended up with 2GB of repeated repository.
Solution
Change your maven ‘settings.xml’ in {maven install dir}/conf Uncomment the line “/path/to/local/repo” in the settings tag and change it to be ~/../.m2/repository so every one shares the same maven repository.

  1. ollieoid posted this