diff --git a/maven-artifact-manager/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java b/maven-artifact-manager/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java index 0eb8be01eb..37010fc2ca 100644 --- a/maven-artifact-manager/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java +++ b/maven-artifact-manager/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java @@ -475,6 +475,7 @@ public class DefaultWagonManager String actualChecksum = checksumObserver.getActualChecksum(); File checksumFile = new File( destination + checksumFileExtension ); + checksumFile.deleteOnExit(); wagon.get( remotePath + checksumFileExtension, checksumFile ); String expectedChecksum = FileUtils.fileRead( checksumFile );