1

我正在尝试在 Scala 项目中使用 finagle,我想知道是否有一个包含 jar 的 Maven 存储库。我想将它添加为依赖项,而不是在本地编译所有东西。

4

2 回答 2

2

来自http://twitter.github.com/finagle/

注意:Maven Artifacts 发布到http://maven.twttr.com上的公共 twitter maven repo 。

于 2012-08-08T10:33:20.713 回答
2

这是我的一个使用 Finagle 5.0.0 的项目的示例 build.sbt 文件:

https://github.com/cb372/finagle-beanstalk/blob/d2ac139999fd49a6dc4fcd6e1097b07da234b408/build.sbt

基本上你需要:

resolvers += "Twitter Maven repo" at "http://maven.twttr.com/"

libraryDependencies += "com.twitter" % "finagle-core" % "5.0.0"

当我几天前检查时,Maven repo 中可用的 finagle-core 的最新版本是 5.3.1,所以你应该使用它。

于 2012-08-08T11:50:18.173 回答