Issue Details (XML | Word | Printable)

Key: MAVEN-1733
Type: Bug Bug
Status: Reopened Reopened
Priority: Major Major
Assignee: Unassigned
Reporter: Jeff Jensen
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Maven 1

Bootstrap failure: Unable to delete directory ...

Created: 10/Dec/05 05:23 PM   Updated: 21/Apr/07 04:08 PM
Component/s: None
Affects Version/s: 1.1-beta-3
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. Text File buildit.log (835 kB)

Environment:
Win XP, svn Checked out revision 355781.
Issue Links:
dependent
 


 Description  « Hide

bootstrap consistently fails. Attached is log for my last run.

This is an interesting line from it:
[exec] Caused by: Unable to delete directory C:\devroot\reference\maven\maven-1\plugins\trunk\genapp\src\plugin-test\nonStandardDirsTest\target

I completely deleted the svn dirs and got latest. The error above prior was this:
[exec] Root cause
[exec] Unable to delete directory C:\devroot\reference\maven\maven-1\plugins\trunk\genapp\src\plugin-test\mavenHomeLocalTemplateTest\target

And the run that failed before that one did not have an "unable to delete dir". (I did about 6 or so bootstraps today, trying to get it to work)

They are on different plugins, such as Javadoc, Test Genapp. I have 3 of my last logs, and a couple of them are the test genapp (not the middle run of the 3).

I hope something helps here, and this isn't some silly chase. Thanks again for looking into it.
I tried to determine some environment thing for me.
Oh, typing of environment, I am using JDK 1.5. Is that OK, or perhaps the prob?



Jeff Jensen added a comment - 10/Dec/05 05:24 PM

After the extra scn co's, the revision is 355792. I missed changing that before saving.


Arnaud Heritier added a comment - 11/Dec/05 07:05 PM

which ant release are you using ? 1.6.5 ?


Jeff Jensen added a comment - 11/Dec/05 07:15 PM

1.6.2. Site says 1.5 or higher. Prob time to upgrade anyways...


Lukas Theussl added a comment - 07/Apr/06 02:00 PM

Jeff, any update on this? I'm afraid we can't reproduce it (luckily ).


Arnaud Heritier added a comment - 07/Apr/06 03:27 PM

I encountered it several times on windows. This is certainly specific to this OS.
I think that it is due to the fact that in some plugins' tests we call the clean goal after the test and not before.
If windows is a little bit slow, an handle isn't remove and the delete step fails.


Jeff Jensen added a comment - 07/Apr/06 05:58 PM

After Arnaud gave me a b3 snapshot, and posts them, I stopped bootstrapping. So nothing further since.

Does Arnaud's answer (reproduced) give what is needed?

Do you want me to try again?


Lukas Theussl added a comment - 07/Apr/06 06:13 PM

Thanks Jeff, it's not necessary that you dig any further.
I didn't know that Arnaud could reproduce the problem, so let's leave it up to him (boy, am I glad to run Linux, the bootstrap is long enough without occasional fails...).


Arnaud Heritier added a comment - 11/Apr/06 05:33 PM

I checked that to test all plugins we called always the clean goal before the test and never after (to avoid to delete a locked file or directory after a test -> Windows OS only).
I tested several times and I didn't reproduce it.


Arnaud Heritier added a comment - 14/Apr/06 03:54 PM

I reproduced it again


Arnaud Heritier added a comment - 14/Apr/06 03:55 PM

Not sure when we'll fix it


Arnaud Heritier added a comment - 23/Apr/06 05:34 PM

It can be related to this note given in the javac ant task :

Windows Note:When the modern compiler is used in unforked mode on Windows, it locks up the files present in the classpath of the <javac> task, and does not release them. The side effect of this is that you will not be able to delete or move those files later on in the build. The workaround is to fork when invoking the compiler.

http://ant.apache.org/manual/CoreTasks/javac.html

A workarround can be to set maven.compile.fork=true
Since I applied it locally I didn't yet reproduce it.


Arnaud Heritier added a comment - 16/May/06 11:49 AM

Can be related to some InputStream not properly closed in our code ??


Arnaud Heritier added a comment - 15/Jan/07 07:50 AM

I didn't reproduce it for several months. I think we'll close it