public MutableLocalComponentMetaData convert(Set<? extends Configuration> configurations, ModuleInternal module) {
assert configurations.size() > 0 : "No configurations found for module: " + module.getName() + ". Configure them or apply a plugin that does it.";
DefaultModuleDescriptor moduleDescriptor = new DefaultModuleDescriptor(IvyUtil.createModuleRevisionId(module), module.getStatus(), null);
moduleDescriptor.addExtraAttributeNamespace(IVY_MAVEN_NAMESPACE_PREFIX, IVY_MAVEN_NAMESPACE);
ComponentIdentifier componentIdentifier = componentIdentifierFactory.createComponentIdentifier(module);
DefaultLocalComponentMetaData metaData = new DefaultLocalComponentMetaData(moduleDescriptor, componentIdentifier);
configurationsToModuleDescriptorConverter.addConfigurations(metaData, configurations);
dependenciesToModuleDescriptorConverter.addDependencyDescriptors(metaData, configurations);
configurationsToArtifactsConverter.addArtifacts(metaData, configurations);
return metaData;