generate rest grammar from maven