]> source.dussan.org Git - aspectj.git/commitdiff
Detect previously failed downloads by verifying existing file checksums
authorAlexander Kriegisch <Alexander@Kriegisch.name>
Tue, 8 Jun 2021 01:52:11 +0000 (08:52 +0700)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Tue, 8 Jun 2021 01:52:11 +0000 (08:52 +0700)
There was a helpful option hiding in Download Maven plugin, which we use
to download artifacts unavailable on Maven Central, such as the Ant
installer and several source packages: 'checkSignature'. It has the
effect of verifying checksums of existing, i.e. previously downloaded
files too, not only newly downloaded ones. This helps detect interrupted
downloads from previous runs or generally invalid files, whatever the
reason. I was looking for this option before, but did not notice it
because of the name. This is about verifying checksums, not checking
signatures. Anyway, a maintainer just told me about it here:

https://github.com/maven-download-plugin/maven-download-plugin/issues/186

I requested that the option be renamed and described better.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
lib/pom.xml

index abb416de60f58fe06dc4b9b41250a45eb9084bad..e7f82b4098c2b24f40593b1753b8ce49324206a5 100644 (file)
             <groupId>com.googlecode.maven-download-plugin</groupId>
             <artifactId>download-maven-plugin</artifactId>
             <version>1.6.3</version>
+            <configuration>
+              <!-- Detect previously failed downloads by verifying checksums of existing files -> retry -->
+              <checkSignature>true</checkSignature>
+            </configuration>
             <executions>
               <execution>
                 <id>download-ant-binaries</id>