Generate Thrift code using a maven profile

Signed-off-by: stack <stack@apache.org>