After a failed build, further executions of the plugin were skipped, because
the MD5-summs suggested, that nothing is to do because nothing has changed.
Because of that, the MD5-summs are now removed in case of a failure.
thread.setContextClassLoader(contextClassLoader);
}
}
+ catch (MojoExecutionException e)
+ {
+ tracker.failed();
+ throw e;
+ }
+ catch (MojoFailureException e)
+ {
+ tracker.failed();
+ throw e;
+ }
+ catch (RuntimeException e)
+ {
+ tracker.failed();
+ throw e;
+ }
finally
{
/** Remember mappings and configuration */
private final Set<String> classNames;
private boolean modified = false;
+ private boolean failed = false;
private final File saved;
private final MessageDigest digest;
}
+ void failed()
+ {
+ failed = true;
+ }
+
+
void load()
{
if (saved.isFile() && saved.length() > 0)
void save()
{
+ if (failed)
+ {
+ saved.delete();
+ return;
+ }
+
if (!modified)
return;