Automatically validate Thrift connector IDL
</arguments>
</configuration>
</execution>
+ <execution>
+ <id>generate-thrift-idl</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>java</goal>
+ </goals>
+ <configuration>
+ <mainClass>com.facebook.swift.generator.swift2thrift.Main</mainClass>
+ <arguments>
+ <argument>com.facebook.presto.connector.thrift.api.PrestoThriftService</argument>
+ <argument>-recursive</argument>
+ <argument>-out</argument>
+ <argument>${project.build.directory}/PrestoThriftService.thrift</argument>
+ </arguments>
+ </configuration>
+ </execution>
+ <execution>
+ <id>validate-thrift-idl</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <configuration>
+ <executable>diff</executable>
+ <arguments>
+ <argument>-b</argument>
+ <argument>-c</argument>
+ <argument>${project.basedir}/src/main/sphinx/include/PrestoThriftService.thrift</argument>
+ <argument>${project.build.directory}/PrestoThriftService.thrift</argument>
+ </arguments>
+ </configuration>
+ </execution>
</executions>
<configuration>
<includeProjectDependencies>false</includeProjectDependencies>
<artifactId>presto-parser</artifactId>
<version>${project.version}</version>
</dependency>
+ <dependency>
+ <groupId>com.facebook.presto</groupId>
+ <artifactId>presto-thrift-connector-api</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>com.facebook.swift</groupId>
+ <artifactId>swift2thrift-generator-cli</artifactId>
+ <version>${dep.swift.version}</version>
+ </dependency>
</dependencies>
</plugin>
