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

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


The following commit(s) were added to refs/heads/master by this push:
     new a81c501905f [opt](build) enable maven cache and check maven version 
(#60819)
a81c501905f is described below

commit a81c501905f3a29bb320ebbbe5ed96aa48a4eb08
Author: morrySnow <[email protected]>
AuthorDate: Sun Mar 1 20:46:16 2026 +0800

    [opt](build) enable maven cache and check maven version (#60819)
    
    ### What problem does this PR solve?
    
    Problem Summary:
    
    This pull request updates the Maven build configuration to enforce a
    minimum Maven version and improve build performance through caching. The
    most important changes are:
    
    Build requirements and enforcement:
    
    * Added the `maven-enforcer-plugin` (version 3.6.2) to the `fe/pom.xml`
    build plugins, enforcing that Maven version 3.9.0 or higher is required
    to build the project.
    
    Build performance improvements:
    
    * Added the `maven-build-cache-extension` (version 1.2.2) to the
    `fe/pom.xml` build extensions, enabling build caching to speed up
    repeated builds.
---
 fe/pom.xml                     | 25 +++++++++++++++++++++++++
 fs_brokers/cdc_client/build.sh |  2 +-
 2 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/fe/pom.xml b/fe/pom.xml
index bd8598a5807..b3c6c2ebd8a 100644
--- a/fe/pom.xml
+++ b/fe/pom.xml
@@ -64,6 +64,26 @@ under the License.
     </mailingLists>
     <build>
         <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-enforcer-plugin</artifactId>
+                <version>3.6.2</version>
+                <executions>
+                    <execution>
+                        <id>enforce-maven-version</id>
+                        <goals>
+                            <goal>enforce</goal>
+                        </goals>
+                        <configuration>
+                            <rules>
+                                <requireMavenVersion>
+                                    <version>[3.9.0,)</version>
+                                </requireMavenVersion>
+                            </rules>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
             <plugin>
                 <groupId>org.codehaus.mojo</groupId>
                 <artifactId>flatten-maven-plugin</artifactId>
@@ -212,6 +232,11 @@ under the License.
                 <artifactId>os-maven-plugin</artifactId>
                 <version>1.7.0</version>
             </extension>
+            <extension>
+                <groupId>org.apache.maven.extensions</groupId>
+                <artifactId>maven-build-cache-extension</artifactId>
+                <version>1.2.2</version>
+            </extension>
         </extensions>
     </build>
     <modules>
diff --git a/fs_brokers/cdc_client/build.sh b/fs_brokers/cdc_client/build.sh
index 6f2e325b3ec..e3d984f5a92 100755
--- a/fs_brokers/cdc_client/build.sh
+++ b/fs_brokers/cdc_client/build.sh
@@ -27,7 +27,7 @@ export CDC_CLIENT_HOME="${ROOT}"
 
 "${DORIS_HOME}"/generated-source.sh noclean
 cd "${DORIS_HOME}/fe"
-"${MVN_CMD}" install -pl fe-common -Dskip.doc=true -DskipTests
+"${MVN_CMD}" install -pl fe-common -Dskip.doc=true -DskipTests 
-Dmaven.build.cache.enabled=false
 
 echo "Install cdc client..."
 cd "${CDC_CLIENT_HOME}"


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

Reply via email to