Skip to content

[MASSEMBLY-1033] Optionally create an accompanying checksum file #1240

Open

Description

@jira-importer

Martin Lichtin opened MASSEMBLY-1033 and commented

Use case would be

  • plugin creates a assembly.zip file
  • plugin optionally creates a assembly.sha file
    • containing a checksum line for each file in assembly.zip

No further details from MASSEMBLY-1033

Activity

  1. jira-importer commented on Mar 10, 2025

    @jira-importer
    Author

    Michael Osipov commented

    For me this violates a basic principal: do one thing and do it good. The same applies to m-source/jar/javadoc-p. There is a specialized plugin for the usecase depicted here.

  2. jira-importer commented on Mar 11, 2025

    @jira-importer
    Author

    Martin Lichtin commented

    There is a specialized plugin for the usecase depicted here

    Which one do you have in mind? I did quite a bit of searching around, but couldn't find one.

    The assembly plugin seemed like an ideal place to do this, as it creates the assembly and with it the sha file.

  3. jira-importer commented on Mar 12, 2025

    @jira-importer
    Author

    Tamas Cservenak commented

    The plugin Michael Osipov  pointed at creates checksum for attached artifacts, while user asks for "a file containing a checksum line for each file in assembly.zip". That does not seems related to me, nor provides the information for user. Or do I miss something?

  4. jira-importer commented on Mar 12, 2025

    @jira-importer
    Author

    Michael Osipov commented

    Darn, I have totally misread the usecase...

  5. jira-importer commented on Mar 12, 2025

    @jira-importer
    Author

    Martin Lichtin commented

    currently we're doing this with the help of two other plugins

    • exec-maven-plugin to run something like "find . -type f -exec sha512sum {} + > ../${assembly.sha}", to create the .sha file
    • build-helper-maven-plugin 'attach-artifact' to let Maven know about the .sha file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions