【问题标题】:Using sbt-git-plugin in Play! framework在 Play 中使用 sbt-git-plugin!框架
【发布时间】:2012-08-27 09:19:18
【问题描述】:

我正在尝试在 Play 中使用 Git 命令!直接控制台。所以,我找到了sbt-git-plugin 并尝试使用它。为此,我按照上面链接中解释的说明进行操作。

(包括

resolvers += Resolver.url("scalasbt", new URL("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)

resolvers += "jgit-repo" at "http://download.eclipse.org/jgit/maven"

addSbtPlugin("com.jsuereth" % "sbt-git-plugin" % "0.4")

到项目/plugins.sbt 文件。)

但是,我的游戏!控制台说它找不到'org.eclipse.jgit.pgm.Main'。有什么我必须检查或做的吗?请告诉我如何在 Play 框架中应用这个 SBT 插件。

谢谢,提前。

【问题讨论】:

    标签: playframework-2.0 sbt


    【解决方案1】:

    JGit Maven 存储库似乎已关闭(来自http://download.eclipse.org/jgit/maven/ 的 404)。

    您应该尝试使用备用存储库,例如 http://eclipse.ialto.org/jgit/maven/repository/

    resolvers += Resolver.url("scalasbt", new URL("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)
    
    resolvers += "jgit-repo" at "http://eclipse.ialto.org/jgit/maven/repository/"
    
    addSbtPlugin("com.jsuereth" % "sbt-git-plugin" % "0.4")
    

    【讨论】:

    • 还是不行。在我的 play-2.0.2 文件夹(存储库/缓存)中,有 jGit 的 jars。但是,看起来我的 play-2.0.2 控制台找不到任何类路径或其他东西..
    • 请从缓存中删除文件并重试。
    猜你喜欢
    • 2014-06-01
    • 2021-10-04
    • 2014-12-04
    • 2015-10-30
    • 2018-04-02
    • 2021-03-26
    • 2015-03-01
    • 2014-01-12
    • 2018-12-11
    相关资源
    最近更新 更多