Class MavenArtifactFetcher
java.lang.Object
org.robolectric.internal.dependency.MavenArtifactFetcher
public class MavenArtifactFetcher extends Object
Class responsible for fetching artifacts from Maven. This uses a thread pool of size two in order
to parallelize downloads. It uses the Sun JSSE provider for downloading due to its seamless
integration with HTTPUrlConnection.
-
Constructor Summary
Constructors Constructor Description MavenArtifactFetcher(String repositoryUrl, String repositoryUserName, String repositoryPassword, File localRepositoryDir, ExecutorService executorService)
-
Method Summary
Modifier and Type Method Description protected com.google.common.util.concurrent.ListenableFuture<Void>
createFetchToFileTask(URL remoteUrl, File tempFile)
void
fetchArtifact(MavenJarArtifact artifact)
-
Constructor Details
-
MavenArtifactFetcher
public MavenArtifactFetcher(String repositoryUrl, String repositoryUserName, String repositoryPassword, File localRepositoryDir, ExecutorService executorService)
-
-
Method Details