Skip to content

Commit

Permalink
[MNG-8160] Recreate the transformed artifact if it has been deleted (…
Browse files Browse the repository at this point in the history
…by the clean goal for example) (#1587)
  • Loading branch information
gnodet authored Jun 19, 2024
1 parent df94ee0 commit c3f1cd6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private String mayUpdate()
} else {
String current = sha1(src);
String existing = sourceState.get();
if (!Objects.equals(current, existing)) {
if (!Files.exists(target) || !Objects.equals(current, existing)) {
defaultConsumerPomArtifactTransformer.transform(project, session, src, target);
Files.setLastModifiedTime(target, Files.getLastModifiedTime(src));
}
Expand Down

0 comments on commit c3f1cd6

Please sign in to comment.