This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new fb23bd43639 fix(cli): add jna for windows (#11707)
fb23bd43639 is described below
commit fb23bd436392cfe413e5a710118ffb771ace4800
Author: CritasWang <[email protected]>
AuthorDate: Thu Dec 14 10:15:43 2023 +0800
fix(cli): add jna for windows (#11707)
---
iotdb-client/cli/pom.xml | 17 +++++++++++++++++
pom.xml | 6 ++++++
2 files changed, 23 insertions(+)
diff --git a/iotdb-client/cli/pom.xml b/iotdb-client/cli/pom.xml
index 55324491c36..6222710716d 100644
--- a/iotdb-client/cli/pom.xml
+++ b/iotdb-client/cli/pom.xml
@@ -108,6 +108,13 @@
<groupId>org.jline</groupId>
<artifactId>jline</artifactId>
</dependency>
+ <!-- Not for importing class, used for windows CLI,
+ refer to https://github.com/apache/iotdb/pull/4458 -->
+ <dependency>
+ <groupId>net.java.dev.jna</groupId>
+ <artifactId>jna</artifactId>
+ <scope>runtime</scope>
+ </dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-csv</artifactId>
@@ -211,6 +218,16 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <configuration>
+ <usedDependencies>
+ <!-- This dependency is required at runtime, used for
windows CLI -->
+ <usedDependency>net.java.dev.jna:jna</usedDependency>
+ </usedDependencies>
+ </configuration>
+ </plugin>
</plugins>
</build>
<profiles>
diff --git a/pom.xml b/pom.xml
index 0992b05d588..283fd6867d4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -110,6 +110,7 @@
<jetty.version>9.4.53.v20231009</jetty.version>
<jjwt.version>0.11.5</jjwt.version>
<jline.version>3.23.0</jline.version>
+ <jna.version>5.14.0</jna.version>
<!--
do not upgrade this package unless we have to...
Some
experiments(https://github.com/jixuan1989/DependencyTest/blob/main/src/main/java/timecho/exp/JolTimeCost.java):
@@ -293,6 +294,11 @@
<artifactId>jline</artifactId>
<version>${jline.version}</version>
</dependency>
+ <dependency>
+ <groupId>net.java.dev.jna</groupId>
+ <artifactId>jna</artifactId>
+ <version>${jna.version}</version>
+ </dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-csv</artifactId>