use of org.eclipse.tycho.repository.local.MirroringArtifactProvider in project tycho by eclipse.
the class TargetPlatformFactoryImpl method createExternalArtifactProvider.
/**
* Provider for all target platform artifacts from outside the reactor.
*/
private IRawArtifactFileProvider createExternalArtifactProvider(Set<MavenRepositoryLocation> completeRepositories, List<TargetDefinitionContent> targetDefinitionsContent, IRawArtifactFileProvider pomDependencyArtifactRepository, boolean includePackedArtifacts) {
RepositoryArtifactProvider remoteArtifactProvider = createRemoteArtifactProvider(completeRepositories, targetDefinitionsContent);
MirroringArtifactProvider remoteArtifactCache = MirroringArtifactProvider.createInstance(localArtifactRepository, remoteArtifactProvider, includePackedArtifacts, logger);
IRawArtifactFileProvider jointArtifactsProvider = new CompositeArtifactProvider(pomDependencyArtifactRepository, remoteArtifactCache);
return jointArtifactsProvider;
}
Aggregations