gpt4 book ai didi

maven - 从源代码构建 HikariCP

转载 作者:行者123 更新时间:2023-12-01 15:54:14 24 4
gpt4 key购买 nike

我想用 HikariPC 替换 BoneCP。从 here 下载 tar.gz并提取。我不知道这是否是一个正确的命令,但在我运行的 hikaricp-java6 目录中

$ mvn clean compile assembly:single

maven 打印错误

[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /Users/gkiko/Downloads/brettwooldridge-HikariCP-5cb1000/hikaricp-java6/src/main/java/com/zaxxer/hikari/util/ConcurrentBag.java:[358,20] cannot find symbol
symbol : method hasQueuedPredecessors()
location: class com.zaxxer.hikari.util.ConcurrentBag.Synchronizer
[ERROR] /Users/gkiko/Downloads/brettwooldridge-HikariCP-5cb1000/hikaricp-java6/src/main/java/com/zaxxer/hikari/pool/HikariPool.java:[150,37] cannot find symbol
symbol : method setRemoveOnCancelPolicy(boolean)
location: class java.util.concurrent.ScheduledThreadPoolExecutor
[ERROR] /Users/gkiko/Downloads/brettwooldridge-HikariCP-5cb1000/hikaricp-java6/src/main/java/com/zaxxer/hikari/pool/HikariPool.java:[486,28] cannot find symbol
symbol : method abort(java.util.concurrent.ExecutorService)
location: interface com.zaxxer.hikari.proxy.IHikariConnectionProxy
[INFO] 3 errors
[INFO] ------------------------------------------
[INFO] -------------------------------------------------------
[INFO] BUILD FAILURE

maven 版本:

Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T21:37:52+04:00)
Maven home: /usr/local/Cellar/maven/3.2.1/libexec
Java version: 1.6.0_65, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.9.4", arch: "x86_64", family: "mac"

Java 版本:

java version "1.7.0_55"
Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)

你能告诉我如何获取 HikariCPjar 文件,这样我就可以将它添加到我的 java web 应用程序中并与 sqlite?

最佳答案

构建 HikariCP 需要 Java 8——甚至是 Java 6/7 兼容版本。但是您可以从此处的 maven 中央存储库下载 JAR:

http://search.maven.org/#search%7Cga%7C1%7Chikaricp

单击 HikariCP-java6 版本 2.0.1 条目的“jar”链接(第二行)。

关于maven - 从源代码构建 HikariCP,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25106671/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com