加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

scala – scrooge-sbt-plugin的存储库是什么?

发布时间:2020-12-16 09:09:57 所属栏目:安全 来源:网络整理
导读:什么是当前版本的scrooge-sbt-plugin的存储库?还是设置说明过时了? 根据the documentation,我将其添加到Play Framework项目中: 在project / plugins.sbt中 addSbtPlugin("com.twitter" %% "scrooge-sbt-plugin" % "3.3.2") 在build.sbt中 com.twitter.scr
什么是当前版本的scrooge-sbt-plugin的存储库?还是设置说明过时了?

根据the documentation,我将其添加到Play Framework项目中:

在project / plugins.sbt中

addSbtPlugin("com.twitter" %% "scrooge-sbt-plugin" % "3.3.2")

在build.sbt中

com.twitter.scrooge.ScroogeSBT.newSettings

libraryDependencies ++= Seq(
  "org.apache.thrift" % "libthrift" % "0.8.0","com.twitter" %% "scrooge-core" % "3.3.2","com.twitter" %% "finagle-thrift" % "6.5.0"
)

播放clean-all和播放编译后,我得到这个输出:

[warn]  module not found: com.twitter#scrooge-sbt-plugin;3.3.2
[warn] ==== typesafe-ivy-releases: tried
[warn]   http://repo.typesafe.com/typesafe/ivy-releases/com.twitter/scrooge-sbt-plugin/scala_2.10/sbt_0.13/3.3.2/ivys/ivy.xml
[warn] ==== sbt-plugin-releases: tried
[warn]   http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.twitter/scrooge-sbt-plugin/scala_2.10/sbt_0.13/3.3.2/ivys/ivy.xml
[warn] ==== local: tried
[warn]   /opt/play-2.2.0/repository/local/com.twitter/scrooge-sbt-plugin/scala_2.10/sbt_0.13/3.3.2/ivys/ivy.xml
[warn] ==== Maven2 Local: tried
[warn]   file:/home/fernando/.m2/repository/com/twitter/scrooge-sbt-plugin_2.10_0.13/3.3.2/scrooge-sbt-plugin-3.3.2.pom
[warn] ==== sonatype-oss-snapshots: tried
[warn]   http://oss.sonatype.org/content/repositories/snapshots/com/twitter/scrooge-sbt-plugin_2.10_0.13/3.3.2/scrooge-sbt-plugin-3.3.2.pom
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/com/twitter/scrooge-sbt-plugin_2.10_0.13/3.3.2/scrooge-sbt-plugin-3.3.2.pom
[warn] ==== Typesafe repository: tried
[warn]   http://repo.typesafe.com/typesafe/releases/com/twitter/scrooge-sbt-plugin_2.10_0.13/3.3.2/scrooge-sbt-plugin-3.3.2.pom
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: com.twitter#scrooge-sbt-plugin;3.3.2: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn] 
[warn]  Note: Some unresolved dependencies have extra attributes.  Check that these dependencies exist with the requested attributes.
[warn]      com.twitter:scrooge-sbt-plugin:3.3.2 (sbtVersion=0.13,scalaVersion=2.10)
[warn] 
sbt.ResolveException: unresolved dependency: com.twitter#scrooge-sbt-plugin;3.3.2: not found

在maven.twttr.com似乎有3.3.1版本.3.3.2版本怎么样?我在mvnrepository.com或oss.sonatype.org找不到.

解决方法

存储库位于 https://oss.sonatype.org/content/groups/public.

通过查看Build.scala,您可以找到他们发布到哪个存储库.

如果您查看https://oss.sonatype.org/content/groups/public/com/twitter/并搜索“scrooge-sbt-plugin”,请填写以“_0.12”结尾的查找文件夹,因此它将作为SBT 0.12.x插件发布.您可能无法使用此插件播放2.2.x,因为它使用SBT 0.13.x.

版本3.3.2不是最新版本,我有解决所有文件的问题.使用3.9.2作品:

项目/ build.properties mus包含SBT 0.12(示例):

sbt.version=0.12.2

project / plugins.sbt必须包含解析器:

resolvers += "sonatype" at "https://oss.sonatype.org/content/groups/public"

addSbtPlugin("com.twitter" %% "scrooge-sbt-plugin" % "3.9.2")

最后build.sbt或Build.scala必须包含:

com.twitter.scrooge.ScroogeSBT.newSettings

scalaVersion := "2.10.1"

libraryDependencies ++= Seq(
  "org.apache.thrift" % "libthrift" % "0.8.0","com.twitter" %% "scrooge-core" % "3.9.2","com.twitter" %% "finagle-thrift" % "6.5.0"
)

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读