diff --git a/pom.xml b/pom.xml
index 64368de2e..b7183a9fb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -87,6 +87,7 @@
1.6
shaded.parquet
thrift
+ 0.9.3
@@ -196,8 +197,8 @@
*/jdiff/*.xml
.travis.yml
licenses/**
- thrift-0.9.3/**
- thrift-0.9.3.tar.gz
+ thrift-${thrift.version}/**
+ thrift-${thrift.version}.tar.gz
@@ -218,7 +219,7 @@
org.apache.thrift
libthrift
- 0.9.3
+ ${thrift.version}
junit
@@ -227,4 +228,48 @@
test
+
+
+
+
+
+ !windows
+
+
+ UnixClassOS
+
+
+
+ org.codehaus.mojo
+ exec-maven-plugin
+ 1.2.1
+
+
+ check-thrift-version
+ generate-sources
+
+ exec
+
+
+ sh
+ ${basedir}
+
+ -c
+ ${thrift.executable} -version | fgrep 'Thrift version ${thrift.version}' && exit 0;
+ echo "=================================================================================";
+ echo "========== [FATAL] Build is configured to require Thrift version ${thrift.version} ==========";
+ echo -n "========== Currently installed: ";
+ ${thrift.executable} -version;
+ echo "=================================================================================";
+ exit 1
+
+
+
+
+
+
+
+
+
+