Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-32167

Repository Import task will overwrite existing metadata instead of merging

    Details

    • Type: Bug
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.38.1
    • Fix Version/s: None
    • Component/s: import-export
    • Labels:
    • Notability:
      3

      Description

      Repository Import task will overwrite existing metadata instead of merging the metadata, causing incorrect metadata.

      Steps to reproduce

      1) In Nexus 2 upload component with version 1.0.0 to a hosted maven repo.

      The maven-metadata.xml has 1.0.0

      2) in Nexus 3 upload same component with version 2.0.0 and 3.0.0

      The maven-metadata.xml has 2.0.0 and 3.0.0

      3) In Nexus 3 create and run Repository Import task using source repo in step 1 and target repo in step 2.

      4) Check the maven-metadata.xml for this component in target repo and it will show only version 1.0.0.

      Expected Result

      The maven-metadata.xml for this component in target repo should show versions 1.0.0, 2.0.0 and 3.0.0

      Workaround

      Run a rebuild maven metadata task on target repository.

      Note

      This should be tested for all formats that Repository Import is supported on.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            msurani Mahendra Surani
            Last Updated By:
            Michael Oliverio Michael Oliverio
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                tigCommentSecurity.panel-title