}
public @Override void visitArtifact(MavenBuild build, MavenArtifact artifact)
{
// add a Maven 2 compatible artifact entry
ArtifactRepositoryItem repositoryItem = new ArtifactRepositoryItem(build, artifact, false);
if (!repositoryItem.fileExists()) {
return; // skip this artifact, its file was purged
}
add(repositoryItem);
// if this is a snapshot, also add a Maven 3 compatible artifact entry
if (artifact.version.endsWith("-SNAPSHOT")) {
ArtifactRepositoryItem item = new ArtifactRepositoryItem(build, artifact, true);
add(item);
// add metadata for this artifact version
String key = artifact.groupId + ":" + artifact.artifactId + ":" + artifact.version;
MetadataRepositoryItem meta = metadata.get(key);
if (meta == null) {