public ResolvedArtifact create(ResolvedDependency owner, final Artifact artifact, final ArtifactResolver resolver) {
return new DefaultResolvedArtifact(owner, artifact, new Factory<File>() {
public File create() {
return lockingManager.useCache(String.format("download %s", artifact), new Factory<File>() {
public File create() {
<BUG>return resolver.resolve(artifact).getFile();
}</BUG>
});
}
});

public ResolvedArtifact create(ResolvedDependency owner, final Artifact artifact, final ArtifactResolver resolver) {
return new DefaultResolvedArtifact(owner, artifact, new Factory<File>() {
public File create() {
return lockingManager.useCache(String.format("download %s", artifact), new Factory<File>() {
public File create() {
DefaultBuildableArtifactResolveResult result = new DefaultBuildableArtifactResolveResult();
resolver.resolve(artifact, result);
return result.getFile();
}
});
