You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org> on 2010/12/15 08:57:58 UTC

[jira] Closed: (SUREFIRE-573) When temp directory is missing or not writeable, error messages should state that plainly somewhere

     [ http://jira.codehaus.org/browse/SUREFIRE-573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kristian Rosenvold closed SUREFIRE-573.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.7

Fixed because 2.7 no longer writes to temp. The empty catch block on the initial IOException has also been removed, so the error message for non-writeable files should be better.

> When temp directory is missing or not writeable, error messages should state that plainly somewhere
> ---------------------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-573
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-573
>             Project: Maven Surefire
>          Issue Type: Improvement
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.4.3
>         Environment: Cygwin on Windows XP Pro, maven 2.2.1, apache-tika-0.4, JDK 1.6.0_16
>            Reporter: Jeff Cadow
>            Priority: Minor
>             Fix For: 2.7
>
>         Attachments: build.log
>
>
> My TEMP and TMP environment variables were pointing to a directory I forgot to recreate after rebuilding my machine. 
> When I invoked "mvn install" from the apache-tika-0.4 directory, I got the following BUILD ERROR:
>     Error creating properties files for forking; nested exception is java.io.IOException: The system cannot find the path specified
> The Java stack trace that maven's -e switch dumped indicated that surefire was trying to create a temp file, but didn't say where.
> If I had seen "$TEMP/<filename>" or "/home/jcadow/TEMP/<filename>" in an error message or stack trace, it would have saved me 2 days.
> Attaching build.log, the output of "mvn -e install".
> TO REPRODUCE: 
> Install maven 2.2.1, download apache-tika-0.4, rename your temp directory, invoke 'mvn -e install' from apache-tika-0.4 base directory.

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