Ejemplo n.º 1
0
 public void resolve(
     ModuleVersionArtifactMetaData artifact, BuildableArtifactResolveResult result) {
   LocalArtifactMetaData artifactMetaData = publishMetaData.getArtifact(artifact.getId());
   if (artifactMetaData != null) {
     result.resolved(artifactMetaData.getFile());
   } else {
     result.notFound(artifact.getId());
   }
 }
 public void resolve(
     Artifact artifact, BuildableArtifactResolveResult result, ModuleSource moduleSource) {
   result.failed(
       new ArtifactResolveException(artifact, "No cached version available for offline mode"));
 }
Ejemplo n.º 3
0
 public void resolve(Artifact artifact, BuildableArtifactResolveResult result) {
   String path =
       artifact.getExtraAttribute(
           DefaultIvyDependencyPublisher.FILE_ABSOLUTE_PATH_EXTRA_ATTRIBUTE);
   result.resolved(new File(path));
 }