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

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


The following commit(s) were added to refs/heads/master by this push:
     new 39dfb2da5 fix: gremlin-console.sh fails on Mac M/ARM CPU #3050
39dfb2da5 is described below

commit 39dfb2da5c542484e9e7853f04abb3b1a1cb6de6
Author: Vaibhav Joshi <[email protected]>
AuthorDate: Mon Jun 8 08:20:48 2026 +0200

    fix: gremlin-console.sh fails on Mac M/ARM CPU #3050
    
    * fix [Bug]: gremlin-console.sh fails on Mac M4 (Apple Silicon)#3031
    
    Added org.fusesource.jansi:jansi:2.4.0 as a runtime dependency in
    `hugegraph-server/hugegraph-dist/pom.xml` to prevent
    NoClassDefFoundError: org/fusesource/jansi/AnsiConsole when launching 
gremlin-console.
---
 hugegraph-server/hugegraph-dist/pom.xml                  | 10 ++++++++++
 install-dist/release-docs/LICENSE                        |  6 ++++++
 install-dist/release-docs/NOTICE                         |  9 +++++++++
 .../release-docs/licenses/LICENSE-jansi-2.4.0.txt        | 16 ++++++++++++++++
 install-dist/scripts/dependency/known-dependencies.txt   |  1 +
 5 files changed, 42 insertions(+)

diff --git a/hugegraph-server/hugegraph-dist/pom.xml 
b/hugegraph-server/hugegraph-dist/pom.xml
index 1fe20b6d9..5914b038b 100644
--- a/hugegraph-server/hugegraph-dist/pom.xml
+++ b/hugegraph-server/hugegraph-dist/pom.xml
@@ -33,6 +33,7 @@
         <assembly.dir>${project.basedir}/src/assembly</assembly.dir>
         
<assembly.descriptor.dir>${assembly.dir}/descriptor</assembly.descriptor.dir>
         <assembly.static.dir>${assembly.dir}/static</assembly.static.dir>
+        <jansi.version>2.4.0</jansi.version>
     </properties>
 
     <dependencies>
@@ -123,6 +124,15 @@
             <artifactId>grpc-stub</artifactId>
             <version>${grpc.version}</version>
         </dependency>
+
+        <!-- Added updated jar to avoid java.lang.NoClassDefFoundError: 
org/fusesource/jansi/AnsiConsole when launching
+             gremlin console on arm64 -->
+        <dependency>
+            <groupId>org.fusesource.jansi</groupId>
+            <artifactId>jansi</artifactId>
+            <version>${jansi.version}</version>
+            <scope>runtime</scope>
+        </dependency>
     </dependencies>
 
     <build>
diff --git a/install-dist/release-docs/LICENSE 
b/install-dist/release-docs/LICENSE
index fc15a7740..001431782 100644
--- a/install-dist/release-docs/LICENSE
+++ b/install-dist/release-docs/LICENSE
@@ -929,3 +929,9 @@ The text of each license is also included in 
licenses/LICENSE-[project].txt.
 
     https://central.sonatype.com/artifact/xmlpull/xmlpull/1.1.3.1 -> Public 
Domain
     https://central.sonatype.com/artifact/xpp3/xpp3_min/1.1.4c -> Public Domain
+
+#
+# jansi 2.4.0 (https://github.com/fusesource/jansi)
+#
+# This product includes software developed by the Jansi project 
(http://fusesource.github.io/jansi/).
+# See licenses/LICENSE-jansi-2.4.0.txt for license details (Apache License 2.0 
or LGPL 3.0+).
diff --git a/install-dist/release-docs/NOTICE b/install-dist/release-docs/NOTICE
index fdded4e6d..775f03241 100644
--- a/install-dist/release-docs/NOTICE
+++ b/install-dist/release-docs/NOTICE
@@ -1887,3 +1887,12 @@ swagger-ui NOTICE
 
 swagger-ui
 Copyright 2020-2021 SmartBear Software Inc.
+
+========================================================================
+
+#
+# jansi 2.4.0 (https://github.com/fusesource/jansi)
+#
+# This product includes software developed by the Jansi project 
(http://fusesource.github.io/jansi/).
+# See licenses/LICENSE-jansi-2.4.0.txt for license details (Apache License 2.0 
or LGPL 3.0+).
+
diff --git a/install-dist/release-docs/licenses/LICENSE-jansi-2.4.0.txt 
b/install-dist/release-docs/licenses/LICENSE-jansi-2.4.0.txt
new file mode 100644
index 000000000..09b4ae371
--- /dev/null
+++ b/install-dist/release-docs/licenses/LICENSE-jansi-2.4.0.txt
@@ -0,0 +1,16 @@
+Copyright (c) 2007-2021, the original author(s)
+All rights reserved.
+
+This software is dual-licensed under the Apache License, Version 2.0 and the 
GNU Lesser General Public License, version 3 or later (LGPL-3.0-or-later).
+
+You may obtain a copy of the Apache License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+You may obtain a copy of the GNU Lesser General Public License at
+
+    http://www.gnu.org/licenses/lgpl-3.0.html
+
+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.
+
+This product includes software developed by the Jansi project 
(http://fusesource.github.io/jansi/).
diff --git a/install-dist/scripts/dependency/known-dependencies.txt 
b/install-dist/scripts/dependency/known-dependencies.txt
index 2d745b150..326ac3dd7 100644
--- a/install-dist/scripts/dependency/known-dependencies.txt
+++ b/install-dist/scripts/dependency/known-dependencies.txt
@@ -241,6 +241,7 @@ jakarta.ws.rs-api-3.0.0.jar
 jakarta.xml.bind-api-2.3.3.jar
 jakarta.xml.bind-api-3.0.0.jar
 jamm-0.3.2.jar
+jansi-2.4.0.jar
 java-cup-runtime-11b-20160615.jar
 javapoet-1.8.0.jar
 javassist-3.21.0-GA.jar

Reply via email to