Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346536 - Failure to remove temp files should not fail the build
Summary: Failure to remove temp files should not fail the build
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Tycho (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Jan Sievers CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-19 16:20 EDT by Robert Wetzold CLA
Modified: 2021-04-28 16:54 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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