This is an automated email from the ASF dual-hosted git repository.

gangwu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/parquet-mr.git


The following commit(s) were added to refs/heads/master by this push:
     new 1b1961376 PARQUET-2453: Add build-helper-maven-plugin for some modules 
(#1305)
1b1961376 is described below

commit 1b19613769a7163195583886e54ed981e39fea8d
Author: Lijie Wang <[email protected]>
AuthorDate: Fri Apr 5 10:41:53 2024 +0800

    PARQUET-2453: Add build-helper-maven-plugin for some modules (#1305)
---
 parquet-column/pom.xml   | 20 ++++++++++++++++++++
 parquet-common/pom.xml   | 20 ++++++++++++++++++++
 parquet-encoding/pom.xml | 20 ++++++++++++++++++++
 3 files changed, 60 insertions(+)

diff --git a/parquet-column/pom.xml b/parquet-column/pom.xml
index dd4c16c7d..540e8f82a 100644
--- a/parquet-column/pom.xml
+++ b/parquet-column/pom.xml
@@ -127,6 +127,26 @@
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-shade-plugin</artifactId>
       </plugin>
+      <!-- Adding generated classes to build path -->
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>build-helper-maven-plugin</artifactId>
+        <version>3.5.0</version>
+        <executions>
+          <execution>
+            <id>add-source</id>
+            <phase>generate-sources</phase>
+            <goals>
+              <goal>add-source</goal>
+            </goals>
+            <configuration>
+              <sources>
+                <source>${project.build.directory}/generated-src</source>
+              </sources>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
       <plugin>
         <groupId>org.codehaus.mojo</groupId>
         <artifactId>exec-maven-plugin</artifactId>
diff --git a/parquet-common/pom.xml b/parquet-common/pom.xml
index 6c2d24439..87deea8a6 100644
--- a/parquet-common/pom.xml
+++ b/parquet-common/pom.xml
@@ -79,6 +79,26 @@
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-jar-plugin</artifactId>
       </plugin>
+      <!-- Adding generated classes to build path -->
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>build-helper-maven-plugin</artifactId>
+        <version>3.5.0</version>
+        <executions>
+          <execution>
+            <id>add-source</id>
+            <phase>generate-sources</phase>
+            <goals>
+              <goal>add-source</goal>
+            </goals>
+            <configuration>
+              <sources>
+                <source>${project.build.directory}/generated-src</source>
+              </sources>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
       <plugin>
         <groupId>org.codehaus.mojo</groupId>
         <artifactId>exec-maven-plugin</artifactId>
diff --git a/parquet-encoding/pom.xml b/parquet-encoding/pom.xml
index 53d1437f2..d1c135dd0 100644
--- a/parquet-encoding/pom.xml
+++ b/parquet-encoding/pom.xml
@@ -65,6 +65,26 @@
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-jar-plugin</artifactId>
       </plugin>
+      <!-- Adding generated classes to build path -->
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>build-helper-maven-plugin</artifactId>
+        <version>3.5.0</version>
+        <executions>
+          <execution>
+            <id>add-source</id>
+            <phase>generate-sources</phase>
+            <goals>
+              <goal>add-source</goal>
+            </goals>
+            <configuration>
+              <sources>
+                <source>${project.build.directory}/generated-src</source>
+              </sources>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
       <plugin>
         <groupId>org.codehaus.mojo</groupId>
         <artifactId>exec-maven-plugin</artifactId>

Reply via email to