Skip to content

Commit 51c78ac

Browse files
author
gengxiaoyu
committed
add thrift compile files to pass CI.
1 parent 33a3d73 commit 51c78ac

13 files changed

Lines changed: 16499 additions & 12 deletions

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Directories #
22
/build/
33
target/
4-
hudi-metastore/src/main/thrift/gen-java/
4+
#hudi-metastore/src/main/thrift/gen-java/
55

66
# OS Files #
77
.DS_Store

hudi-metastore/pom.xml

Lines changed: 45 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -122,23 +122,57 @@
122122
<groupId>org.apache.rat</groupId>
123123
<artifactId>apache-rat-plugin</artifactId>
124124
</plugin>
125+
<!-- <plugin>-->
126+
<!-- <groupId>org.apache.thrift.tools</groupId>-->
127+
<!-- <artifactId>maven-thrift-plugin</artifactId>-->
128+
<!-- <version>0.1.11</version>-->
129+
<!-- <configuration>-->
130+
<!-- <thriftExecutable>/usr/local/bin/thrift</thriftExecutable>-->
131+
<!-- <thriftSourceRoot>src/main/thrift</thriftSourceRoot>-->
132+
<!-- <outputDirectory>src/main/thrift/gen-java</outputDirectory>-->
133+
<!-- <generator>java</generator>-->
134+
<!-- </configuration>-->
135+
<!-- <executions>-->
136+
<!-- <execution>-->
137+
<!-- <id>thrift-sources</id>-->
138+
<!-- <phase>generate-sources</phase>-->
139+
<!-- <goals>-->
140+
<!-- <goal>compile</goal>-->
141+
<!-- </goals>-->
142+
<!-- </execution>-->
143+
<!-- </executions>-->
144+
<!-- </plugin>-->
125145
<plugin>
126-
<groupId>org.apache.thrift.tools</groupId>
127-
<artifactId>maven-thrift-plugin</artifactId>
128-
<version>0.1.11</version>
129-
<configuration>
130-
<thriftExecutable>/usr/local/bin/thrift</thriftExecutable>
131-
<thriftSourceRoot>src/main/thrift</thriftSourceRoot>
132-
<outputDirectory>src/main/thrift/gen-java</outputDirectory>
133-
<generator>java</generator>
134-
</configuration>
146+
<groupId>org.codehaus.mojo</groupId>
147+
<artifactId>build-helper-maven-plugin</artifactId>
148+
<version>1.8</version>
135149
<executions>
136150
<execution>
137-
<id>thrift-sources</id>
151+
<id>add-source</id>
138152
<phase>generate-sources</phase>
139153
<goals>
140-
<goal>compile</goal>
154+
<goal>add-source</goal>
141155
</goals>
156+
<configuration>
157+
<sources>
158+
<source>src/main/java</source>
159+
<source>src/main/thrift/gen-java</source>
160+
</sources>
161+
</configuration>
162+
</execution>
163+
<execution>
164+
<id>add-test-source</id>
165+
<phase>generate-sources</phase>
166+
<goals>
167+
<goal>add-test-source</goal>
168+
</goals>
169+
<configuration>
170+
<sources>
171+
<source>src/test/java</source>
172+
<source>src/main/java</source>
173+
<source>src/main/thrift/gen-java</source>
174+
</sources>
175+
</configuration>
142176
</execution>
143177
</executions>
144178
</plugin>

0 commit comments

Comments
 (0)