Changes to build jars properly according to instructions to publish to centrl maven repository