Skip to content

Commit 5afa72e

Browse files
authored
hint IDE the source code generated by thrift (#3400)
1 parent 7190ab6 commit 5afa72e

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

parquet-format-structures/pom.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,25 @@
133133
<quiet>true</quiet>
134134
</configuration>
135135
</plugin>
136+
<plugin>
137+
<groupId>org.codehaus.mojo</groupId>
138+
<artifactId>build-helper-maven-plugin</artifactId>
139+
<version>3.6.0</version>
140+
<executions>
141+
<execution>
142+
<id>add-sources</id>
143+
<phase>generate-sources</phase>
144+
<goals>
145+
<goal>add-source</goal>
146+
</goals>
147+
<configuration>
148+
<sources>
149+
<source>${project.build.directory}/generated-sources/thrift</source>
150+
</sources>
151+
</configuration>
152+
</execution>
153+
</executions>
154+
</plugin>
136155
</plugins>
137156
</build>
138157

parquet-thrift/pom.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,25 @@
206206
<groupId>org.apache.maven.plugins</groupId>
207207
<artifactId>maven-shade-plugin</artifactId>
208208
</plugin>
209+
<plugin>
210+
<groupId>org.codehaus.mojo</groupId>
211+
<artifactId>build-helper-maven-plugin</artifactId>
212+
<version>3.6.0</version>
213+
<executions>
214+
<execution>
215+
<id>add-test-sources</id>
216+
<phase>generate-test-sources</phase>
217+
<goals>
218+
<goal>add-test-source</goal>
219+
</goals>
220+
<configuration>
221+
<sources>
222+
<source>${project.build.directory}/generated-test-sources/thrift</source>
223+
</sources>
224+
</configuration>
225+
</execution>
226+
</executions>
227+
</plugin>
209228
</plugins>
210229
</build>
211230

0 commit comments

Comments
 (0)