I have a set of tar files. I wanted to create MD5 checksum for those files using Maven. How to do it?
i created this tar files using maven-assembly-plugin.
I have a set of tar files. I wanted to create MD5 checksum for those files using Maven. How to do it?
i created this tar files using maven-assembly-plugin.
The Creating artifact checksums told us as
The Install Plugin can create integrity checksums (MD5, SHA-1) for the artifacts during installation.
mvn install -DcreateChecksum=true
To generate the checksum for other file the checksum-maven-plugin may help. It provides the checksum:file as the following usage: -
mvn checksum:file -Dfile=some-file.zip
It also provides the custom checksum algorithms , e.g. MD5, SHA-1, SHA-256 and so on.
-DcreateChecksum=true
does not work since maven-install-plugin v 3.0.0: maven.apache.org/plugins/maven-install-plugin issues.apache.org/jira/browse/MINSTALL-143 –
Minnieminnnie The capability of creating checksums has been removed from the maven-install-plugin
version 3.0. The last version where it was available was 2.5.2:
mvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file \
-DcreateChecksum=true
© 2022 - 2024 — McMap. All rights reserved.