Lifty 和 SBT 0.12 [英] Lifty and SBT 0.12

查看:33
本文介绍了Lifty 和 SBT 0.12的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 SBT 的新手,我正在尝试安装和配置 Lifty,但是当我尝试运行 sbt,但出现以下错误:

[error] (*:update) sbt.ResolveException: 未解决的依赖项:org.lifty#lifty;1.7.4: 未找到

根据 Lifty 的安装插件说明,我的~/.sbt/plugins/build.sbt 文件看起来像:

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

我的 ~/.sbt/build.sbt 文件包含以下行:

seq( Lifty.liftySettings : _*)

但是,当我尝试运行它时,我得到上面列出的 SBT 错误,如果我尝试使用 Lifty 的 1.7.5-SNAPSHOT 版本,我会得到类似的错误.

我在 Ubuntu 12.10 上使用 SBT 启动器版本 0.12.0 和 Scala 版本 2.10.1(Java HotSpot(TM) 64 位服务器 VM,Java 1.7.0_17).

谢谢!

解决方案

您使用了错误的定义.这是你需要的;

resolvers += Resolver.url("sbt-plugin-snapshots", new URL("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-snapshots/"))(Resolver.ivyStylePatterns)addSbtPlugin("org.lifty" % "lifty" % "1.7.4")

如果你想让它对所有项目都可用,那么输入~/.sbt/plugins/plugins.sbt.否则它会进入:ProjectFolder/project/plugins.sbt

但他们没有发布 Scala 2.10 或 SBT 0.12..查看此处了解可用内容.

I'm new to using SBT, and I'm trying to install and configure Lifty, however when I try to run sbt, I get the following error:

[error] (*:update) sbt.ResolveException: unresolved dependency: org.lifty#lifty;1.7.4: not found

As per the Installing the Plugin instructions for Lifty, my ~/.sbt/plugins/build.sbt file looks like:

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

And my ~/.sbt/build.sbt file includes the line:

seq( Lifty.liftySettings : _*)

However, when trying to run this, I get the SBT error listed above, and I get a similar error if I try to use the 1.7.5-SNAPSHOT version of Lifty instead.

I'm using SBT launcher version 0.12.0 and Scala version 2.10.1 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_17) on Ubuntu 12.10.

Thank you!

解决方案

You are using the wrong definition. Here is what you need;

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

addSbtPlugin("org.lifty" % "lifty" % "1.7.4")

If you want to make this available for all projects, then put in ~/.sbt/plugins/plugins.sbt. Otherwise it goes in: ProjectFolder/project/plugins.sbt

But they don't have a Scala 2.10 or SBT 0.12 release out.. Look HERE for what is available.

这篇关于Lifty 和 SBT 0.12的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆