问题描述
我想用 HikariPC 替换 BoneCP .从此处下载并提取.我不知道这是否是正确的命令,但是我在hikaricp-java6
目录中运行
I want to replace BoneCP with HikariPC. Downloaded tar.gz
from here and extracted. I don't know if this is a right command but inside hikaricp-java6
directory I run
$ mvn clean compile assembly:single
行家打印错误
[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)
能否请您告诉我如何获取 HikariCP 的jar
文件,以便将其添加到我的Java Web应用程序中并与 sqlite 一起使用?
Could you please tell me how to get jar
file of HikariCP so I can add it to my java web app and use it with sqlite?
推荐答案
要构建HikariCP,甚至需要Java 6/7兼容版本,都需要Java 8.但是您可以从以下位置从Maven中央存储库下载JAR:
Java 8 is required to build HikariCP -- even the Java 6/7 compatible version. But you can download the JAR from the maven central repository here:
http://search.maven.org/#search%7Cga%7C1% 7Chikaricp
单击HikariCP-java6版本2.0.1条目的"jar"链接(第二行).
Click on the 'jar' link for the HikariCP-java6 version 2.0.1 entry (second line).
这篇关于从源代码构建HikariCP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!