Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-573

When temp directory is missing or not writeable, error messages should state that plainly somewhere

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4.3
    • 2.7
    • Maven Surefire Plugin
    • None
    • Cygwin on Windows XP Pro, maven 2.2.1, apache-tika-0.4, JDK 1.6.0_16

    Description

      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.

      Attachments

        1. build.log
          6 kB
          Jeff Cadow

        Activity

          People

            Unassigned Unassigned
            jcadow Jeff Cadow
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: