Maven
  1. Maven
  2. MNG-2839

Non-unique-version snapshots not updated

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.0.5
    • Fix Version/s: None
    • Labels:
      None

      Description

      Test case:

      • let's have a repository with [uniqueVersion]false[/uniqueVersion].
      • let your project download any snapshot dependency (with non-unique version) (like abc-1.0-SNAPSHOT.jar).
      • go to your local repository and change the file content. You can also remove all the metadata.
      • run "mvn -U" on your project
      • you get "[INFO] snapshot abc:abc-1.0-SNAPSHOT: checking for updates from YOUR-REPOSITORY"
      • the abc-1.0-SNAPSHOT.jar in your local repository is NOT updated.

      The same (I think) bug has been reported (and closed) several times before (MNG-1908 etc.) but it still appears in 2.0.5.

      1. dep-update.zip
        1 kB
        Pavel Halas

        Issue Links

          Activity

          Hide
          Benjamin Bentmann added a comment -

          As per MNG-4059, non-unique snapshots are no longer supported.

          Show
          Benjamin Bentmann added a comment - As per MNG-4059 , non-unique snapshots are no longer supported.
          Hide
          Pavel Halas added a comment - - edited

          Sample projects.

          How to use it:

          • deploy the dep1 project into a repository with non-unique version setup.
          • work with the test project (like c:/temp/test/> mvn package)
          • change the local repository content of the dep1-1.0-SNAPSHOT.jar
          • enforce updating the dependencies (like c:/temp/test/> mvn package -U)
          • check the dep1-1.0-SNAPSHOT.jar local repository content. Sometimes the remote repository version is not used.
          Show
          Pavel Halas added a comment - - edited Sample projects. How to use it: deploy the dep1 project into a repository with non-unique version setup. work with the test project (like c:/temp/test/> mvn package) change the local repository content of the dep1-1.0-SNAPSHOT.jar enforce updating the dependencies (like c:/temp/test/> mvn package -U) check the dep1-1.0-SNAPSHOT.jar local repository content. Sometimes the remote repository version is not used.
          Hide
          Brett Porter added a comment -

          please provide the sample project you refer to so we can be sure we are talking about the same thing. MNG-1908 was certainly fixed according to the tests cases given.

          Show
          Brett Porter added a comment - please provide the sample project you refer to so we can be sure we are talking about the same thing. MNG-1908 was certainly fixed according to the tests cases given.
          Hide
          Pavel Halas added a comment - - edited

          Yes. It's the hardcore use case. Nevertheless, it fails to update it (without such manual changes) in regular update cycle (based on settings.xml) too.

          Show
          Pavel Halas added a comment - - edited Yes. It's the hardcore use case. Nevertheless, it fails to update it (without such manual changes) in regular update cycle (based on settings.xml) too.
          Hide
          Brian E. Fox (imported) added a comment -

          Not sure I understand. You're saying that you changed the file in your local repo and then you expect it to update again from the repo?

          Show
          Brian E. Fox (imported) added a comment - Not sure I understand. You're saying that you changed the file in your local repo and then you expect it to update again from the repo?

            People

            • Assignee:
              Benjamin Bentmann
              Reporter:
              Pavel Halas
            • Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development