Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Maven Metadata Checksum Warnings

    Scheduled Pinned Locked Moved Support
    2 Posts 2 Posters 5 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W Offline
      wechselberg.nisboerge_3629
      last edited by wechselberg.nisboerge_3629

      Hi,

      I have a issue reported from one of my users:

      ~~
      When requesting Maven packages from <Some Maven Repo in ProGet> during Build, we receive Checksum Warnings for the file maven-metadata.xml.
      We analyzed this and found out, that the file in the Repository is sometimes re-generated. In these cases the order of the XML-elements changes and the checksum is not matching anymore.
      From our perspective the maven-metadata.xml should be cached on the server and only re-generated when a new package is uploaded. Can you check if something is configured wrong?
      ~~

      I didn't do the analysis myself, but the report makes sense. So my question: Is the maven-metadata re-generated on-the-fly? And might there be some non-deterministic behaviour, that breaks the checksums? Or is this some nasty Race-Condition?

      atrippA 1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer @wechselberg.nisboerge_3629
        last edited by

        Hi @wechselberg-nisboerge_3629,

        In ProGet, the maven metadata files (xml, hash) are indeed generated upon request. The output is deterministic, based on the artifacts in storage and (if relevant) in the remote repository (i.e. connectors). So, if you're seeing it changed, it's because an artifact was uploaded/etc.

        One thing to note -- you cannot upload a metadata file or hash file. Well, you can try (and maven tries) to PUT the file, but the stream is always ignored or "written to /dev/null" as they say.

        We've seen some maven workflows/plugins that attempt to modify/append to this metadata file and re-upload it with changes.

        Thanks,
        Alana

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • 1 / 1
        • First post
          Last post
        Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation