Community
Participate
Working Groups
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.
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.
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.
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.
fixed with 3ee29a9