boolean (Artifact artifact) { String extension = artifact.getArtifactHandler().getExtension(); File file = findArtifact(artifact.getGroupId(), artifact.getArtifactId(), extension, artifact.getType(), artifact.getBaseVersion()); if (file == null) { return false; } artifact.setFile(file); artifact.setResolved(true); return true; }