Generate Thrift code using a maven profile

Signed-off-by: stack <stack@apache.org>
HBASE-12438 Add -Dsurefire.rerunFailingTestsCount=2 to patch build runs so flakies get rerun