{"id":18309568,"url":"https://github.com/sfuhrm/message-digest-assembly-handler","last_synced_at":"2026-05-09T10:10:58.204Z","repository":{"id":57730925,"uuid":"247517935","full_name":"sfuhrm/message-digest-assembly-handler","owner":"sfuhrm","description":"Calculates MD5SUMS/SHA1SUMS-alike files for the contents in a Maven archiver archive","archived":false,"fork":false,"pushed_at":"2023-07-19T13:03:30.000Z","size":82,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T05:42:17.579Z","etag":null,"topics":["assembly","checksum","checksum-calculation","checksums","java","maven","maven-assembly-plugin","md5","md5sums","message-digest","sha-1","sha-256","sha-3","sha256sum"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sfuhrm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-15T17:39:55.000Z","updated_at":"2023-07-19T13:00:51.000Z","dependencies_parsed_at":"2024-11-05T16:12:05.257Z","dependency_job_id":"a9bc6574-70b7-4da5-99a1-336e990f8ba0","html_url":"https://github.com/sfuhrm/message-digest-assembly-handler","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sfuhrm%2Fmessage-digest-assembly-handler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sfuhrm%2Fmessage-digest-assembly-handler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sfuhrm%2Fmessage-digest-assembly-handler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sfuhrm%2Fmessage-digest-assembly-handler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sfuhrm","download_url":"https://codeload.github.com/sfuhrm/message-digest-assembly-handler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248033217,"owners_count":21036756,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["assembly","checksum","checksum-calculation","checksums","java","maven","maven-assembly-plugin","md5","md5sums","message-digest","sha-1","sha-256","sha-3","sha256sum"],"created_at":"2024-11-05T16:11:51.845Z","updated_at":"2026-05-09T10:10:58.199Z","avatar_url":"https://github.com/sfuhrm.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Message Digest Assembly Handler\n===================\n\n[![Java CI with Maven](https://github.com/sfuhrm/message-digest-assembly-handler/actions/workflows/maven-ref.yml/badge.svg)](https://github.com/sfuhrm/message-digest-assembly-handler/actions/workflows/maven-ref.yml)\n[![Coverage](https://raw.githubusercontent.com/sfuhrm/message-digest-assembly-handler/gh-pages/jacoco.svg)]() \n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/de.sfuhrm/message-digest-assembly-handler/badge.svg)](https://maven-badges.herokuapp.com/maven-central/de.sfuhrm/message-digest-assembly-handler) \n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n[![ReleaseDate](https://img.shields.io/github/release-date/sfuhrm/message-digest-assembly-handler)](https://github.com/sfuhrm/message-digest-assembly-handler/releases)\n\nThis is a plugin for the [Maven Assembly Plugin](http://maven.apache.org/plugins/maven-assembly-plugin/) that calculates\nMessage Digests for the files in the archive.\nA typical possible outcome is a `MD5SUMS` file or `SHA256SUMS` file.\n\nRequirements\n--------------\nThe message-digest-assembly-handler requires at least the following environment:\n*   JDK 8 and later\n*   Maven-Assembly-Plugin 3.2.0 and later as a plugin in your `pom.xml`\n\nSetup\n--------------\nYou need to add the handler to your `pom.xml` and your assembly descriptor file.\nExamples are shown in the next subsections.\n\n### In your POM\n\nIn your `pom.xml`, add the `message-digest-assembly-handler` as a dependency to your `maven-assembly-plugin` plugin as described below.\n\n```xml\n\u003cplugin\u003e\n  \u003cgroupId\u003eorg.apache.maven.plugins\u003c/groupId\u003e\n  \u003cartifactId\u003emaven-assembly-plugin\u003c/artifactId\u003e\n  \u003cversion\u003e3.2.0\u003c/version\u003e\n  \u003cdependencies\u003e\n     \u003cdependency\u003e\n       \u003cgroupId\u003ede.sfuhrm\u003c/groupId\u003e\n       \u003cartifactId\u003emessage-digest-assembly-handler\u003c/artifactId\u003e\n       \u003cversion\u003e1.0.0\u003c/version\u003e\n     \u003c/dependency\u003e\n  \u003c/dependencies\u003e\n\u003c/plugin\u003e\n```\n\n### In your assembly descriptor\n\nIn your XML assembly descriptor, add one `containerDescriptorHandler` element:\n\n```xml\n\u003c?xml version=\"1.0\"?\u003e\n\u003cassembly\u003e\n  \u003cid\u003emy-id\u003c/id\u003e\n  \u003cformats\u003e\n    \u003cformat\u003ejar\u003c/format\u003e\n  \u003c/formats\u003e\n  \u003ccontainerDescriptorHandlers\u003e\n    \u003ccontainerDescriptorHandler\u003e\n      \u003chandlerName\u003emessage-digest\u003c/handlerName\u003e\n      \u003cconfiguration\u003e\n        \u003cmessageDigest\u003eMD5\u003c/messageDigest\u003e\n        \u003cchecksumFile\u003eMD5SUMS\u003c/checksumFile\u003e\n      \u003c/configuration\u003e\n    \u003c/containerDescriptorHandler\u003e\n  \u003c/containerDescriptorHandlers\u003e\n```\n\nInstead of the `handlerName` `\"message-digest\"` you can also directly\nrefer to the shortcuts in the following table.\n\n| Message Digest  | `handlerName` Parameter    | Default `checksumFile` | Note                                         |\n|-----------------|----------------------------|------------------------|----------------------------------------------|\n| MD5 *           | `message-digest`           | `MD5SUMS` *            | * default is MD5, overwriting is possible    |\n| MD5             | `message-digest-md5`       | `MD5SUMS`              |                                              |\n| SHA             | `message-digest-sha-1`     | `SHA1SUMS`             |  \"SHA\" in JDK refers to the SHA-1 algorithm  |\n| SHA-256         | `message-digest-sha-2-256` | `SHA256SUMS`           | SHA-2                                        |\n| SHA-512         | `message-digest-sha-2-512` | `SHA512SUMS`           | SHA-2                                        |\n\nNote that overwriting the messageDigest and checksumFile is possible for\nevery handlerName, but except the generic\n`message-digest` it will probably confuse to have a different algorithm that\ndoes not match the handler name.\n\nConfiguration\n--------------\nThe handler declaration in the assembly descriptor\nunderstands the following configuration parameters:\n\n*   `messageDigest`: The name of a MessageDigest algorithm from the JDK.\n    Defaults to `MD5`.\n    The following lists the MessageDigest algorithms supported by AdoptOpenJDK13:\n    `MD2, MD5, SHA, SHA-224, SHA-256, SHA-384, SHA-512, SHA-512/224, SHA-512/256, SHA3-224, SHA3-256, SHA3-384, SHA3-512`.\n\n*   `checksumFile`: The name of the checksum file generated. Defaults to\n    `MD5SUMS`. Typical names are\n    `MD5SUMS`, `SHA1SUMS`, and so on.\n\n*   `exclusionRegex`: A regular expression that defines what files shall not\n    be handled by this handler. This option is important if you want to create\n    multiple checksum files with multiple `containerDescriptorHandler` sections.\n    You can then exclude the handlers from each other, for example by\n    giving the regex `(MD5SUMS|SHA1SUMS)`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsfuhrm%2Fmessage-digest-assembly-handler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsfuhrm%2Fmessage-digest-assembly-handler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsfuhrm%2Fmessage-digest-assembly-handler/lists"}