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

adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new 49c39878e5a HDDS-15593. Add explicit fileset for proto-java-for-ratis 
token replacement (#10537)
49c39878e5a is described below

commit 49c39878e5a608f3e0f0842ceaccd82d006bfc87
Author: Peter Lee <[email protected]>
AuthorDate: Thu Jun 25 17:58:19 2026 +0800

    HDDS-15593. Add explicit fileset for proto-java-for-ratis token replacement 
(#10537)
---
 hadoop-hdds/interface-client/pom.xml | 18 +++++++++++++++---
 hadoop-hdds/interface-server/pom.xml | 18 +++++++++++++++---
 2 files changed, 30 insertions(+), 6 deletions(-)

diff --git a/hadoop-hdds/interface-client/pom.xml 
b/hadoop-hdds/interface-client/pom.xml
index 09c7171db03..1c27ac5a348 100644
--- a/hadoop-hdds/interface-client/pom.xml
+++ b/hadoop-hdds/interface-client/pom.xml
@@ -113,9 +113,21 @@
             <configuration>
               <target>
                 <!-- use grpc, guava, protobuf from ratis-thirdparty -->
-                <replace dir="target/generated-sources/proto-java-for-ratis" 
token="com.google.common" value="org.apache.ratis.thirdparty.com.google.common" 
/>
-                <replace dir="target/generated-sources/proto-java-for-ratis" 
token="com.google.protobuf" 
value="org.apache.ratis.thirdparty.com.google.protobuf" />
-                <replace dir="target/generated-sources/proto-java-for-ratis" 
token="io.grpc" value="org.apache.ratis.thirdparty.io.grpc" />
+                <replace token="com.google.common" 
value="org.apache.ratis.thirdparty.com.google.common">
+                  <fileset 
dir="${project.build.directory}/generated-sources/proto-java-for-ratis">
+                    <include name="**/*.java" />
+                  </fileset>
+                </replace>
+                <replace token="com.google.protobuf" 
value="org.apache.ratis.thirdparty.com.google.protobuf">
+                  <fileset 
dir="${project.build.directory}/generated-sources/proto-java-for-ratis">
+                    <include name="**/*.java" />
+                  </fileset>
+                </replace>
+                <replace token="io.grpc" 
value="org.apache.ratis.thirdparty.io.grpc">
+                  <fileset 
dir="${project.build.directory}/generated-sources/proto-java-for-ratis">
+                    <include name="**/*.java" />
+                  </fileset>
+                </replace>
               </target>
             </configuration>
           </execution>
diff --git a/hadoop-hdds/interface-server/pom.xml 
b/hadoop-hdds/interface-server/pom.xml
index 1d01a06faf2..da5165e3ca4 100644
--- a/hadoop-hdds/interface-server/pom.xml
+++ b/hadoop-hdds/interface-server/pom.xml
@@ -122,9 +122,21 @@
             <configuration>
               <target>
                 <!-- use grpc, guava, protobuf from ratis-thirdparty -->
-                <replace dir="target/generated-sources/proto-java-for-ratis" 
token="com.google.common" value="org.apache.ratis.thirdparty.com.google.common" 
/>
-                <replace dir="target/generated-sources/proto-java-for-ratis" 
token="com.google.protobuf" 
value="org.apache.ratis.thirdparty.com.google.protobuf" />
-                <replace dir="target/generated-sources/proto-java-for-ratis" 
token="io.grpc" value="org.apache.ratis.thirdparty.io.grpc" />
+                <replace token="com.google.common" 
value="org.apache.ratis.thirdparty.com.google.common">
+                  <fileset 
dir="${project.build.directory}/generated-sources/proto-java-for-ratis">
+                    <include name="**/*.java" />
+                  </fileset>
+                </replace>
+                <replace token="com.google.protobuf" 
value="org.apache.ratis.thirdparty.com.google.protobuf">
+                  <fileset 
dir="${project.build.directory}/generated-sources/proto-java-for-ratis">
+                    <include name="**/*.java" />
+                  </fileset>
+                </replace>
+                <replace token="io.grpc" 
value="org.apache.ratis.thirdparty.io.grpc">
+                  <fileset 
dir="${project.build.directory}/generated-sources/proto-java-for-ratis">
+                    <include name="**/*.java" />
+                  </fileset>
+                </replace>
               </target>
             </configuration>
           </execution>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to