-
Task
-
Resolution: Done
-
Blocker
-
0.2
-
None
-
Low
The Maven builds result in quite a few temporary files being created (perhaps by Jackrabbit and/or Derby) in "/tmp" (or wherever java.io.tmpdir points to). This has been a problem on the Hudson boxes, but also it's not playing nice according to Maven. (You'd think the Surefire plugin would default to having a temporary directory under "target", but evidently it doesn't.)
To correct, we need to change the POM files so that the Surefire plugin does use a temporary directory underneath "target". That way, everything is cleaned up. This can be done by setting the standard system property on the plugin:
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
...
<systemProperties>
<property>
<name>java.io.tmpdir</name>
<value>${basedir}/target/temp</value>
</property>
</systemProperties>
...
</configuration>
</plugin>