Guimiot Isabelle created MRM-1878:
-------------------------------------

             Summary: Duplicate artifacts consumer : search in all the 
repositories
                 Key: MRM-1878
                 URL: https://jira.codehaus.org/browse/MRM-1878
             Project: Archiva
          Issue Type: Improvement
          Components: repository scanning
    Affects Versions: 2.2.0
         Environment: all
            Reporter: Guimiot Isabelle
            Priority: Minor


Currently, it seems that duplcate-artifact consumer only seeks duplicate 
artifacts in the same repo, see the line below, from 
DuplicateArtifactsConsumer.java :

{code}
results = metadataRepository.getArtifactsByChecksum( repoId, checksumSha1 );
{code}

"repoId" is specified in the method's arguments, so it means that the result 
only contains identical artifacts from *this* repo ...

When we have several repos (not only one "internal" and one "snapshots"), it 
would be really interested to look for duplications of the current artifact in 
all the "release" repos (if the artifact is a release), or in all the 
"snapshots" repos (if the artifact is a snapshot), not only in the repo of the 
current artifact.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to