repositories.put(repository.getId(), repository);
}
public void resolveModuleArtifacts(ComponentResolveMetaData component, ArtifactType artifactType, BuildableArtifactSetResolveResult result) {
ModuleComponentRepository sourceRepository = findSourceRepository(component.getSource());
ComponentResolveMetaData unpackedComponent = unpackSource(component);
// First try to determine the artifacts locally before going remote
sourceRepository.getLocalAccess().resolveModuleArtifacts(unpackedComponent, artifactType, result);
if (!result.hasResult()) {
sourceRepository.getRemoteAccess().resolveModuleArtifacts(unpackedComponent, artifactType, result);
}