gaholder.putVersionHit(version, versionHit);
gavcount++;
}
NexusNGArtifactHit repositoryHit = getRepositoryHit(versionHit, ai.repository);
if (repositoryHit == null) {
repositoryHit = new NexusNGArtifactHit();
repositoryHit.setRepositoryId(ai.repository);
versionHit.addArtifactHit(repositoryHit);
// we are adding the POM link "blindly", unless packaging is POM,
// since the it will be added below the "usual" way
if (!"pom".equals(ai.packaging)) {
repositoryHit.addArtifactLink(createNexusNGArtifactLink(request, ai.repository, ai.groupId,
ai.artifactId, ai.version, "pom", null));
}
}
repositoryHit.addArtifactLink(createNexusNGArtifactLink(request, ai.repository, ai.groupId,
ai.artifactId, ai.version, ai.fextension, ai.classifier));
tooManyResults = false;
}