When building archiva, I sometime get Failures on some Lucene tests :
java.io.IOException: Directory D:\opensources\archiva\archiva-indexer\target\test-index unable to be deleted.
This exception is throwed by commons-io FileUtils.deleteDirectory.
According to http://www.gossamer-threads.com/lists/lucene/java-user/39116, some file handler opened by Lucene may stay opened and must wait for GC to be closed. Maybe this is an Lucene issue (handler may be closed explicitly, not just waiting for GC to do the job) ?