Class MavenArtifactFetcher


  • public class MavenArtifactFetcher
    extends java.lang.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​(java.lang.String repositoryUrl, java.lang.String repositoryUserName, java.lang.String repositoryPassword, java.io.File localRepositoryDir, java.util.concurrent.ExecutorService executorService)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected com.google.common.util.concurrent.ListenableFuture<java.lang.Void> createFetchToFileTask​(java.net.URL remoteUrl, java.io.File tempFile)  
      void fetchArtifact​(MavenJarArtifact artifact)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MavenArtifactFetcher

        public MavenArtifactFetcher​(java.lang.String repositoryUrl,
                                    java.lang.String repositoryUserName,
                                    java.lang.String repositoryPassword,
                                    java.io.File localRepositoryDir,
                                    java.util.concurrent.ExecutorService executorService)
    • Method Detail

      • createFetchToFileTask

        protected com.google.common.util.concurrent.ListenableFuture<java.lang.Void> createFetchToFileTask​(java.net.URL remoteUrl,
                                                                                                           java.io.File tempFile)