How to create MD5 checksum for tar files in maven
Asked Answered
D

2

5

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.

Dru answered 6/6, 2013 at 9:10 Comment(0)
D
7

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

Updated

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.

Demonic answered 6/6, 2013 at 9:23 Comment(2)
i don't want to create checksum for the artifacts. i have to create checksums for some random tar files.Dru
Just an update that -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-143Minnieminnnie
A
1

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
Abdullah answered 30/10, 2023 at 14:48 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.