Add a checksum checker command
Closed this issue · 2 comments
Calculate checksums for local JARs and compare them with their remote counterpart published at Maven Central. GAV coordinates must be known.
When --gav
is used and the file is downloaded (cached) for the first time there's probably no need to check.
When other inputs are given (no explicit gav
) then files must be inspected for their matching /META-INF/maven/**/<artifactId>/pom.properties
entry, which will provide gav
coordinates. If no matching entry is found then there's no gav
thus causing a failure.
Maven Central usually has md5
, sha1
checksum files. There may also be sha256
and sha512
. Older jars may only have md5
and sha1
jreleaser
https://repo1.maven.org/maven2/org/jreleaser/jreleaser-model-impl/1.4.0/
gradle
https://repo1.maven.org/maven2/org/junit/jupiter/junit-jupiter-api/5.9.2/
maven
https://repo1.maven.org/maven2/org/kordamp/maven/pomchecker-core/1.4.0/
Released in v0.3.0 -> https://github.com/kordamp/jarviz/releases/tag/v0.3.0