sbt无法在Play2-Scala项目中解析ensime-sbt-cmd [英] sbt cannot resolve ensime-sbt-cmd in a Play2-Scala project

查看:124
本文介绍了sbt无法在Play2-Scala项目中解析ensime-sbt-cmd的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试配置Sublime Text 2,以更好地支持使用Scala和Play! 2按照 http ://engineering.panaxiom.co.uk/post/34631917299/sublime-text-2-with-sbt-and-play-2 . (我只做了一个更改:我将插件版本更新为0.1.1.)

I'm trying to configure Sublime Text 2 to better support working with Scala and Play! 2 Framework by following instructions from http://engineering.panaxiom.co.uk/post/34631917299/sublime-text-2-with-sbt-and-play-2. (I made just one change: I updated the plugin version to 0.1.1.)

我几乎可以完成本教程中给出的步骤,但是第二个总是失败(生成ensime配置文件),这仅仅是因为sbt无法解析ensime-sbt-cmd插件(当我进入项目目录并执行play命令).我无法找到问题的原因,但是sbt给我一个错误,例如:

I was able to almost complete the steps given in the tutorial but the second one always fails (generate ensime config file) simply because sbt is unable to resolve ensime-sbt-cmd plugin (when I enter a project directory and execute play command). I'm not able to find the cause of the problem but sbt gives me an error like:

[error] Server access Error: connect: Address is invalid on local machine, or port is
not valid on remote machine url=http://repo1.maven.org/maven2/org/ensime/
ensime-sbt-cmd_2.9.2_012/0.1.1/ensime-sbt-cmd-0.1.1.pom

(命令输出将显示其他URL到:scalasbt.artifactoryonline.com和repo.typesafe.com,但是maven回购URL 存在).之后,将显示一些警告,并再次显示存储库的URL.

(The command output shows other urls to: scalasbt.artifactoryonline.com and repo.typesafe.com, but the maven repo url exists). After that, some warnings are displayed, again with urls of repositories.

sbt能够解析项目具有的所有其他插件或依赖项(我刚刚完成了项目的创建,因此,除了ensime-sbt-cmd之外,没有其他多余的插件或依赖项).

sbt is able to resolve all other plugins or dependencies that the project has (I just finished create the project, so there are no other extra plugins or dependencies except from ensime-sbt-cmd).

我尝试更改scalaVersion(在project_dir/build.sbt上),但没有区别. sbt版本是0.12,scala版本是2.9.2.

I tried to change scalaVersion (on project_dir/build.sbt) but it make no difference. sbt version is 0.12, scala version is 2.9.2.

有人知道我可以做些什么来解决这个问题? Windows 8 64位计算机和Kaspersky Internet Security 2013 上可能与Java 7有关吗?使用这种软件组合,直到我用Java命令(java.exe,javaw.exe,javaws.exe)配置了KIV排除规则后,我才能启动Eclipse Marketplace和Netbeans插件更新.

Someone knows what I can do to solve this problem? Is it possible to be something related to Java 7 on Windows 8 64 bits machine and Kaspersky Internet Security 2013? With this combination of softwares I was unable to launch Eclipse Marketplace and Netbeans plugins updates until I configured KIV exclusion rules with Java commands (java.exe, javaw.exe, javaws.exe).

感谢和抱歉,因为文字很长.

Thanks and sorry because of the long text.

推荐答案

确保您的project/build.sbt文件包含

Make sure that your project/build.sbt file contains

sbt.version = 0.12.4

sbt.version=0.12.4

根据您的错误消息,您的sbt版本已设置为"012"而不是"0.12"

According to your error message, your sbt version has been set to "012" not "0.12"

这篇关于sbt无法在Play2-Scala项目中解析ensime-sbt-cmd的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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