[dna-issues] [JBoss JIRA] Resolved: (DNA-238) Maven build results in a lot of temporary files in "/tmp", but should instead use directory under "target"

Randall Hauch (JIRA) jira-events at lists.jboss.org
Thu Oct 23 14:59:20 EDT 2008


     [ https://jira.jboss.org/jira/browse/DNA-238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Randall Hauch resolved DNA-238.
-------------------------------

    Resolution: Done


Added system properties to have the temporary files be placed under the target directory (so they are properly cleaned up).  It'd be nice if they were placed under a subdirectory, but that's difficult to do (since the subdirectory doesn't exist).

> Maven build results in a lot of temporary files in "/tmp", but should instead use directory under "target"
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: DNA-238
>                 URL: https://jira.jboss.org/jira/browse/DNA-238
>             Project: DNA
>          Issue Type: Task
>          Components: Development Environment
>    Affects Versions: 0.2
>            Reporter: Randall Hauch
>            Assignee: Randall Hauch
>            Priority: Blocker
>             Fix For: 0.3
>
>
> 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>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the dna-issues mailing list