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 snapshot metadata not generated for versions like TRK.0-SNAPSHOT

    Scheduled Pinned Locked Moved Support
    3 Posts 2 Posters 15 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.
    • O Offline
      olivier.piron_7128
      last edited by

      Hi all,

      I'm currently evaluating ProGet Free (Version 2026.5 Build 8) and migrating Maven repositories from Nexus using Feed Replication.

      I've encountered an issue with some SNAPSHOT versions whose version string does not start with a number.

      For example:

      4.2.0-SNAPSHOT → works correctly
      TRK.0-SNAPSHOT → problem

      The package is replicated successfully:

      the JAR is present and downloadable (HTTP 200),
      the POM is present,
      the artifact-level maven-metadata.xml is also available and contains:
      TRK.0-SNAPSHOT

      However, requesting the version-level snapshot metadata returns an error:

      GET /maven2/erisnapshots/ch/eri/olympic-core-table-artifacts/TRK.0-SNAPSHOT/maven-metadata.xml

      Response:

      Metadata file was not found.

      For comparison, the equivalent request for a numeric snapshot version works as expected:

      GET /maven2/erisnapshots/ch/eri/olycore/4.2.0-SNAPSHOT/maven-metadata.xml

      returns the expected snapshot metadata.

      I have also enabled the option to allow invalid versions, but it doesn't seem to affect this behavior.

      From my investigation:

      the package is indexed correctly;
      the version appears in the artifact-level maven-metadata.xml;
      the snapshot JAR can be downloaded successfully;
      only the version-level maven-metadata.xml cannot be retrieved.

      Has anyone experienced this issue?

      Is this a known limitation of the Maven feed, or is there a way to regenerate or expose the missing snapshot metadata for versions such as TRK.0-SNAPSHOT?

      Thanks in advance for any suggestions.

      stevedennisS 1 Reply Last reply Reply Quote 0
      • stevedennisS Offline
        stevedennis inedo-engineer @olivier.piron_7128
        last edited by

        Hi @olivier-piron_7128 ,

        I'm afraid this behavior is somewhat expected because TRK.0 is not a valid version number.

        ProGet has some limited support for invalid version numbers, but this use case falls into one of those unsupported cases.

        The reason is that ProGet is "package server" (as opposed to a file server), and all of the maven-metadata.xml files are generated by ProGet, on demand, based on items in the database. Uploads of maven-metadata.xml are simply ignored.

        Compare this to Nexus (a file server), which serves the client-uploaded maven-metadata.xml files, and whatever other items were uploaded to whatever directory.

        TRK.0-SNAPSHOT is technically a valid artifact name but an invalid version number, so it's treated like an artifact. And, since there are no releases of that package, you get a 404.

        In this case, we would suggest you to switch to using actual version numbers. My guess is that TRK.0 is some kind of work-around for something. You could instead do 9999.9.9 or something, if you needed that kind of work-around.

        Hope that helps,
        Steve

        1 Reply Last reply Reply Quote 0
        • O Offline
          olivier.piron_7128
          last edited by

          Hi @stevedennis,
          Thank you very much for your answer. From what I've read elsewhere, that's exactly what I thought.
          By the way, and besides that, ProGet is a really great tool. Good job !

          Regards,

          Olivier

          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