NEXUS-7582 Component id generation

https://issues.sonatype.org/browse/NEXUS-7582