generate cpp, go, and python thrift files under service-rpc (#445)

This commit is contained in:
Xiangdong Huang 2019-10-22 07:20:38 +02:00 committed by Jiang Tian
parent 4ea7bcca38
commit 7f48ffe7ef
1 changed files with 44 additions and 1 deletions

45
pom.xml
View File

@ -912,7 +912,7 @@
<version>0.1.11</version>
<executions>
<execution>
<id>generate-thrift-sources</id>
<id>generate-thrift-sources-java</id>
<phase>generate-sources</phase>
<goals>
<goal>compile</goal>
@ -923,6 +923,49 @@
<thriftSourceRoot>${basedir}/src/main/thrift</thriftSourceRoot>
</configuration>
</execution>
<execution>
<id>generate-thrift-sources-python</id>
<phase>generate-sources</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<generator>py</generator>
<thriftExecutable>${thrift.exec.absolute.path}</thriftExecutable>
<thriftSourceRoot>${basedir}/src/main/thrift</thriftSourceRoot>
<outputDirectory>${project.build.directory}/generated-sources-python</outputDirectory>
</configuration>
</execution>
<execution>
<id>generate-thrift-sources-go</id>
<phase>generate-sources</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<generator>go</generator>
<thriftExecutable>${thrift.exec.absolute.path}</thriftExecutable>
<thriftSourceRoot>${basedir}/src/main/thrift</thriftSourceRoot>
<outputDirectory>${project.build.directory}/generated-sources-go</outputDirectory>
</configuration>
</execution>
<execution>
<id>generate-thrift-sources-cpp</id>
<phase>generate-sources</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<generator>cpp</generator>
<thriftExecutable>${thrift.exec.absolute.path}</thriftExecutable>
<thriftSourceRoot>${basedir}/src/main/thrift</thriftSourceRoot>
<outputDirectory>${project.build.directory}/generated-sources-cpp</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>