build regal-api as maven jar too