I have a maven project to create a zip file which can be used to upgrade the applications we distribute. When mvn package
is executed this will gather required dependencies and bundle with some PowerShell scripts which does the upgrade. I want to create a checksum for the generated zip file.
When i searched over internet i got two solutions one is to use -DcreateChecksum=true
option for the mvn install
plugin. This zip file is big and we don't want to copy this to maven repository hence we don't execute this goal. Another option is using checksum-maven-plugin
, but this will create checksum for artifacts which i don't want. It also has a command line option mvn checksum:file -Dfile=some-file.zip
but this has to be executed manually. I want to add this to my pom so we don't have to manually create checksum. Is there any clean way other than creating a script to create checksum and calling it.