This plugin does the work for you when you execute the maven build.
However, this plugin is not yet available on maven central repositories, therefore you have to add developer's repo. to your project pom.
Then, as described in the plugin's project page, you have to:
1. Use Java 1.5 or newer due to the usage of Generics
You can specify it in the configuration of maven compiler plugin:
2. Have Thrift executable is in your PATH or set the
3. Include the dependency for libthrift
Then place your *.thrift files to the directory: src/main/thrift.
Now you can execute mvn clean install as usual.