@Override public File findArtifact(org.sonatype.aether.artifact.Artifact artifact) { if (silence) { return null; } for (ArtifactFixer fixer : fixers) { File f = fixer.resolve(artifact); if (f != null) { return f; } } return null; }
@Override public List<String> findVersions(org.sonatype.aether.artifact.Artifact artifact) { if (silence) { return Collections.emptyList(); } //this is important for snapshots, without it the SNAPSHOT will be attempted to be resolved to time-based snapshot version for (ArtifactFixer fixer : fixers) { File f = fixer.resolve(artifact); if (f != null) { return Collections.singletonList(artifact.getBaseVersion()); } } return Collections.emptyList(); }