1 package org.apache.maven.shared.downloader; 2 3 import org.apache.maven.artifact.repository.ArtifactRepository; 4 5 import java.io.File; 6 import java.util.List; 7 8 /** 9 * @author Jason van Zyl 10 */ 11 public interface Downloader 12 { 13 String ROLE = Downloader.class.getName(); 14 15 public File download( String groupId, 16 String artifactId, 17 String version, 18 File localRepository, 19 String[] remoteRepositories ) 20 throws DownloadException, DownloadNotFoundException; 21 22 public File download( String groupId, 23 String artifactId, 24 String version, 25 ArtifactRepository localRepository, 26 List remoteRepositories ) 27 throws DownloadException, DownloadNotFoundException; 28 }