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

          Pavel Halas created issue -
          Hide
          Brian E. Fox 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 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?
          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.
          Jason van Zyl made changes -
          Field Original Value New Value
          Fix Version/s Reviewed [ 13555 ]
          Brett Porter made changes -
          Fix Version/s Reviewed Pending Version Assignment [ 13555 ]
          Fix Version/s 2.0.x [ 13141 ]
          Component/s Artifacts and Repositories [ 11338 ]
          Assignee Brett Porter [ brettporter ]
          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

          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.
          Pavel Halas made changes -
          Attachment dep-update.zip [ 27999 ]
          Brett Porter made changes -
          Assignee Brett Porter [ brettporter ]
          Brett Porter made changes -
          Fix Version/s Issues to be reviewed for 3.x [ 13145 ]
          Fix Version/s 2.2.x (to be reviewed) [ 13141 ]
          Benjamin Bentmann made changes -
          Link This issue is related to MNG-4059 [ MNG-4059 ]
          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.
          Benjamin Bentmann made changes -
          Fix Version/s Issues to be reviewed for 3.x [ 13145 ]
          Status Open [ 1 ] Closed [ 6 ]
          Assignee Benjamin Bentmann [ bentmann ]
          Resolution Won't Fix [ 2 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]
          Mark Thomas made changes -
          Workflow jira [ 12713373 ] Default workflow, editable Closed status [ 12753201 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]
          Mark Thomas made changes -
          Workflow jira [ 12950286 ] Default workflow, editable Closed status [ 12986497 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Closed Closed
          1381d 13h 25m 1 Benjamin Bentmann 04/Dec/10 17:43

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development