Maven
  1. Maven
  2. MNG-4189

Maven not picking up specific timestamped version dependency when a later timestamped version was downloaded and already present in the local repository

    Details

      Description

      To reproduce this issue:

      1. Create a project (let's call this projectA) with a class named ClassA having a method named methodA(). Set the version as 1.0-SNAPSHOT and set uniqueVersion=true.
      2. Deploy this in a remote repository
      3. Create another project (let's call this projectB) which has a dependency on projectA. Set the dependency's version to the specific timestamped version when projectA was deployed in step 2. Create a class named ClassB and add a method which invokes ClassA's methodA().
      4. Add your remote repository either in the settings or in the pom.
      5. Build projectB. You will get a successful build.
      6. Now go back to projectA and remove methodA() from classA.
      7. Deploy projectA to the remote repository again.
      8. Update the dependency version of projectA in projectB's pom.xml. Set it to the latest timestamp version.
      9. Build projectB. Your build will fail because methodA() was removed.
      10. Revert the dependency version of projectA in projectB's pom.xml. Set it to the same value you've set in step 3.
      11. Build projectB. Your build will still fail even though you've set the correct version.
      1. MNG-4189.patch
        2 kB
        Benjamin Bentmann
      2. mng-4189.zip
        15 kB
        Maria Odea Ching
      3. MNG-4189-core-integration-testing.patch
        21 kB
        Maria Odea Ching
      4. MNG-4189-maven-2.1.x.patch
        7 kB
        Maria Odea Ching

        Activity

        Maria Odea Ching created issue -
        Maria Odea Ching made changes -
        Field Original Value New Value
        Affects Version/s 2.0.9 [ 13801 ]
        Maria Odea Ching made changes -
        Attachment mng-4189.zip [ 42476 ]
        Maria Odea Ching made changes -
        Assignee Maria Odea Ching [ oching ]
        Maria Odea Ching made changes -
        Attachment MNG-4189-core-integration-testing.patch [ 42498 ]
        Maria Odea Ching made changes -
        Attachment MNG-4189-maven-2.1.x.patch [ 42499 ]
        Benjamin Bentmann made changes -
        Attachment MNG-4189.patch [ 42543 ]
        John Casey made changes -
        Fix Version/s 2.2.0 [ 15103 ]
        John Casey made changes -
        Fix Version/s 2.2.0 [ 15103 ]
        Fix Version/s 2.2.x [ 13141 ]
        Maria Odea Ching made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 2.1.1 [ 15268 ]
        Resolution Fixed [ 1 ]
        Fix Version/s 2.2.x [ 13141 ]
        Benjamin Bentmann made changes -
        Fix Version/s 2.2.1 [ 15328 ]
        Brett Porter made changes -
        Fix Version/s 2.1.1 [ 15268 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]
        Mark Thomas made changes -
        Workflow jira [ 12714534 ] Default workflow, editable Closed status [ 12754247 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]
        Mark Thomas made changes -
        Workflow jira [ 12951097 ] Default workflow, editable Closed status [ 12987356 ]

          People

          • Assignee:
            Maria Odea Ching
            Reporter:
            Maria Odea Ching
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development