Perform additional packaging required for Sonatype upload

This patch performs some additional packaging which is required for
uploading jars to sonatype.