Make sure javadocs are generated before publishing snapshot to maven