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