Inside eclipse: Create a run configuration specifying THRIFT_PATH env variable value to point to your system thrift binary. Outside eclipse: just type 'mvn clean package' and be happy.