Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 346536

Summary: Failure to remove temp files should not fail the build
Product: z_Archived Reporter: Robert Wetzold <robert.wetzold>
Component: TychoAssignee: Jan Sievers <jan.sievers>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: igor, jan.sievers, t-oberlies
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Robert Wetzold CLA 2011-05-19 16:20:54 EDT
In our build for some reason we got the following error in the end:

[ERROR] Failed to execute goal org.sonatype.tycho:tycho-p2-plugin:0.11.0:update-site-p2-metadata (default-update-site-p2-metadata) on project org.eclipse.skalli.site: Cannot generate P2 metadata: java.io.IOException: Directory C:\Windows\TEMP\tycho-p2-runtime7721500136553414092.tmp\configuration unable to be deleted. -> [Help 1]

Even though this might seem grave from a Tycho viewpoint, for the user this does not matter at all and should be a warning at max and not fail the build.

It appeard only once so far, no parallel build which could interfere, Maven 3.0.3.
Comment 1 Igor Fedorenko CLA 2011-05-19 20:59:00 EDT
Can you attach build debug log (i.e. -X) or at least full stack trace (i.e. -e) of the problem? Without this information it is not clear where the exception is coming from and if it is in fact safe to ignore it.
Comment 2 Robert Wetzold CLA 2011-05-20 03:39:28 EDT
sorry for not doing this, the reason was: the build did not run with -e and I permanently turned it on now on our Hudson but as said this seems to be a very sporadic problem which happened only once so far. If we should get into the situation again I'll be glad to attach it.
Comment 3 Tobias Oberlies CLA 2011-06-06 07:05:01 EDT
It is possible the reconstruct the call stack from the message (once you figure out that the P2ApplicationLauncher throws hidden IOExceptions). It is

org.codehaus.plexus.util.FileUtils.deleteDirectory(File)
org.eclipse.tycho.p2.facade.internal.P2ApplicationLauncher.execute(int)
org.eclipse.tycho.plugins.p2.AbstractP2MetadataMojo.generateMetadata()
org.eclipse.tycho.plugins.p2.AbstractP2MetadataMojo.execute()

I agree that a failure to remove a temp directory should only be a warning.
Comment 4 Jan Sievers CLA 2011-07-04 10:28:31 EDT
fixed with 3ee29a9