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

benjobs pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/streampark.git


The following commit(s) were added to refs/heads/dev by this push:
     new 5acca1d16 [Bug] Fix maven setting update (#4261)
5acca1d16 is described below

commit 5acca1d16b4d7ff8efdab5bb2e37c7153641a5f5
Author: Gianzie <[email protected]>
AuthorDate: Sat Jun 21 22:28:18 2025 +0800

    [Bug] Fix maven setting update (#4261)
---
 .../streampark/console/core/service/impl/SettingServiceImpl.java     | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git 
a/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/service/impl/SettingServiceImpl.java
 
b/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/service/impl/SettingServiceImpl.java
index 902772147..dcc9d9f9d 100644
--- 
a/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/service/impl/SettingServiceImpl.java
+++ 
b/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/service/impl/SettingServiceImpl.java
@@ -79,10 +79,11 @@ public class SettingServiceImpl extends 
ServiceImpl<SettingMapper, Setting>
                 .set(Setting::getSettingValue, value)
                 .update();
 
-            getMavenConfig().updateConfig();
-
             Optional<Setting> optional = 
Optional.ofNullable(SETTINGS.get(setting.getSettingKey()));
             optional.ifPresent(x -> x.setSettingValue(value));
+
+            getMavenConfig().updateConfig();
+
             return true;
         } catch (Exception e) {
             return false;

Reply via email to