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

Maven metadata rebuild in newdb does not honor group and artifactId when passed in

Details

    Description

      Recreation Steps

      1. Create maven hosted repository
        2. Deploy 2 components with GAs org.example.foo and com.testing.bar
        3. Find maven-metadata.xml for com.testing.bar in blobstore. grep -rl "<artifactId>bar</artifactId>" * | xargs grep -l "<metadata"
        4. Remove one <version> so it needs to be rebuilt.
        5. Create task "Repair - Rebuild Maven repository metadata (maven-metadata.xml) Task"
        6. Set group to org.example and run task
        7. Look in blobstore and you will see the new metadata file. The old one will be there too waiting to be compacted.
        grep -rl "<artifactId>bar</artifactId>" * | xargs grep -l "<metadata"

      Expected Results

          1. Don't see new metadata file 

      Attachments

        Activity

          People

            Unassigned Unassigned
            jhill Joshua Hill
            Michael Oliverio Michael Oliverio
            NXRM - Neo
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              tigCommentSecurity.panel-title