Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-222

Maven build results in a lot of temporary files in "/tmp", but should instead use directory under "target"

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Blocker Blocker
    • 0.3
    • 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>

            rhauch Randall Hauch (Inactive)
            rhauch Randall Hauch (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: