progress.beginTask("Downloading (kB)", allSizes);
for (LockfileArtifact lockfileArtifact : nonLocalArtifacts) {
File tmpFile = File.createTempFile("adept-", lockfileArtifact.filename, getTmpDir());
//Initiate downloads:
futures.add(executorService.submit(new ArtifactDownloader(baseDir, lockfileArtifact.getArtifact(),
lockfileArtifact.filename, tmpFile, maxRetries, logger, progress)));
}
executorService.shutdown();
executorService.awaitTermination(timeout, timeoutUnit);