Support building jar suitable for running standalone or in cluster