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

oxsean pushed a commit to branch 3.3
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/3.3 by this push:
     new c393896ca8 Fixed OutOfMemoryError during maven install  (#15325)
c393896ca8 is described below

commit c393896ca822271f13147edd3603a83053833704
Author: zrlw <[email protected]>
AuthorDate: Thu Apr 24 15:54:22 2025 +0800

    Fixed OutOfMemoryError during maven install  (#15325)
    
    * Fixed maven build argLine parameter
    
    * remove maven-build-cache-extension to avoid OOM during maven build
    
    * Set utf8 encoding to log chinese characters normally with different jdk
---
 .mvn/extensions.xml                                | 24 ----------------
 .mvn/jvm.config                                    |  3 ++
 .mvn/maven-build-cache-config.xml                  | 33 ----------------------
 .../dubbo-spring-boot-compatible/pom.xml           | 11 --------
 dubbo-test/dubbo-test-spring3.2/pom.xml            | 11 --------
 dubbo-test/dubbo-test-spring4.1/pom.xml            | 11 --------
 dubbo-test/dubbo-test-spring4.2/pom.xml            | 11 --------
 pom.xml                                            | 11 +++++++-
 8 files changed, 13 insertions(+), 102 deletions(-)

diff --git a/.mvn/extensions.xml b/.mvn/extensions.xml
deleted file mode 100644
index 6a0b72799a..0000000000
--- a/.mvn/extensions.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one or more
-  contributor license agreements.  See the NOTICE file distributed with
-  this work for additional information regarding copyright ownership.
-  The ASF licenses this file to You under the Apache License, Version 2.0
-  (the "License"); you may not use this file except in compliance with
-  the License.  You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
-  -->
-<extensions>
-    <extension>
-        <groupId>org.apache.maven.extensions</groupId>
-        <artifactId>maven-build-cache-extension</artifactId>
-        <version>1.2.0</version>
-    </extension>
-</extensions>
diff --git a/.mvn/jvm.config b/.mvn/jvm.config
new file mode 100644
index 0000000000..40d5472ed5
--- /dev/null
+++ b/.mvn/jvm.config
@@ -0,0 +1,3 @@
+-Dfile.encoding=UTF-8
+-Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8
+-Dstdout.encoding=UTF-8 -Dstderr.encoding=UTF-8
\ No newline at end of file
diff --git a/.mvn/maven-build-cache-config.xml 
b/.mvn/maven-build-cache-config.xml
deleted file mode 100644
index 3e7fc5ddb4..0000000000
--- a/.mvn/maven-build-cache-config.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one or more
-  contributor license agreements.  See the NOTICE file distributed with
-  this work for additional information regarding copyright ownership.
-  The ASF licenses this file to You under the Apache License, Version 2.0
-  (the "License"); you may not use this file except in compliance with
-  the License.  You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
-  -->
-<cache xmlns="http://maven.apache.org/BUILD-CACHE-CONFIG/1.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/BUILD-CACHE-CONFIG/1.0.0 
https://maven.apache.org/xsd/build-cache-config-1.0.0.xsd";>
-    <configuration>
-        <enabled>false</enabled>
-    </configuration>
-    <input>
-        <global>
-            <includes>
-                <include>src/main</include>
-            </includes>
-            <excludes>
-                <exclude>pom.xml</exclude>
-                <exclude>.flattened-pom.xml</exclude>
-            </excludes>
-        </global>
-    </input>
-</cache>
diff --git a/dubbo-spring-boot-project/dubbo-spring-boot-compatible/pom.xml 
b/dubbo-spring-boot-project/dubbo-spring-boot-compatible/pom.xml
index 2df055e915..0b9bf7cbda 100644
--- a/dubbo-spring-boot-project/dubbo-spring-boot-compatible/pom.xml
+++ b/dubbo-spring-boot-project/dubbo-spring-boot-compatible/pom.xml
@@ -94,17 +94,6 @@
         <spring-boot.version>1.4.7.RELEASE</spring-boot.version>
       </properties>
     </profile>
-    <profile>
-      <id>jdk15ge-add-open</id>
-      <activation>
-        <jdk>[15,</jdk>
-      </activation>
-      <properties>
-        <argLine>--add-opens java.base/java.lang=ALL-UNNAMED
-          --add-opens java.base/java.math=ALL-UNNAMED
-          --add-opens java.base/java.util=ALL-UNNAMED</argLine>
-      </properties>
-    </profile>
     <profile>
       <id>jdk15ge-simple</id>
       <build>
diff --git a/dubbo-test/dubbo-test-spring3.2/pom.xml 
b/dubbo-test/dubbo-test-spring3.2/pom.xml
index dd1f545855..8f078cae2d 100644
--- a/dubbo-test/dubbo-test-spring3.2/pom.xml
+++ b/dubbo-test/dubbo-test-spring3.2/pom.xml
@@ -84,17 +84,6 @@
   </build>
 
   <profiles>
-    <profile>
-      <id>jdk15ge-add-open</id>
-      <activation>
-        <jdk>[15,</jdk>
-      </activation>
-      <properties>
-        <argLine>--add-opens java.base/java.lang=ALL-UNNAMED
-          --add-opens java.base/java.math=ALL-UNNAMED
-          --add-opens java.base/java.util=ALL-UNNAMED</argLine>
-      </properties>
-    </profile>
     <profile>
       <id>jdk15ge-simple</id>
       <build>
diff --git a/dubbo-test/dubbo-test-spring4.1/pom.xml 
b/dubbo-test/dubbo-test-spring4.1/pom.xml
index 819de7442f..855593b598 100644
--- a/dubbo-test/dubbo-test-spring4.1/pom.xml
+++ b/dubbo-test/dubbo-test-spring4.1/pom.xml
@@ -84,17 +84,6 @@
   </build>
 
   <profiles>
-    <profile>
-      <id>jdk15ge-add-open</id>
-      <activation>
-        <jdk>[15,</jdk>
-      </activation>
-      <properties>
-        <argLine>--add-opens java.base/java.lang=ALL-UNNAMED
-          --add-opens java.base/java.math=ALL-UNNAMED
-          --add-opens java.base/java.util=ALL-UNNAMED</argLine>
-      </properties>
-    </profile>
     <profile>
       <id>jdk15ge-simple</id>
       <build>
diff --git a/dubbo-test/dubbo-test-spring4.2/pom.xml 
b/dubbo-test/dubbo-test-spring4.2/pom.xml
index 9010804e97..ad204ff053 100644
--- a/dubbo-test/dubbo-test-spring4.2/pom.xml
+++ b/dubbo-test/dubbo-test-spring4.2/pom.xml
@@ -84,17 +84,6 @@
   </build>
 
   <profiles>
-    <profile>
-      <id>jdk15ge-add-open</id>
-      <activation>
-        <jdk>[15,</jdk>
-      </activation>
-      <properties>
-        <argLine>--add-opens java.base/java.lang=ALL-UNNAMED
-          --add-opens java.base/java.math=ALL-UNNAMED
-          --add-opens java.base/java.util=ALL-UNNAMED</argLine>
-      </properties>
-    </profile>
     <profile>
       <id>jdk15ge-simple</id>
       <build>
diff --git a/pom.xml b/pom.xml
index a5bd545133..f3e6eacd66 100644
--- a/pom.xml
+++ b/pom.xml
@@ -763,13 +763,22 @@
         </plugins>
       </build>
     </profile>
+    <profile>
+      <id>jdk15lt</id>
+      <activation>
+        <jdk>[1.7,15)</jdk>
+      </activation>
+      <properties>
+        <argLine>${argline}</argLine>
+      </properties>
+    </profile>
     <profile>
       <id>jdk15ge-add-open</id>
       <activation>
         <jdk>[15,</jdk>
       </activation>
       <properties>
-        <argLine>--add-opens java.base/java.lang=ALL-UNNAMED
+        <argLine>${argline} --add-opens java.base/java.lang=ALL-UNNAMED
           --add-opens java.base/java.math=ALL-UNNAMED
           --add-opens java.base/java.util=ALL-UNNAMED</argLine>
       </properties>

Reply via email to