private static void registerJarSourceContent( Map<String, Content> contentMap,
MavenArtifact mavenArtefact,
String directory )
{
JarFileContent jarContent = new JarFileContent( mavenArtefact.getContent() );
String contentUrl = String.format( "%s/%s-%s-sources.jar",
directory,
mavenArtefact.getArtifactId(),
mavenArtefact.getVersion() );
registerContentAndItsDigests( jarContent, contentUrl, contentMap );