SBT不能解决Squeryl依赖 [英] SBT not resolving Squeryl dependency
问题描述
我习惯于使用Squeryl作为我的ORM,但是由于某种原因,这次无法解决我的依赖关系(虽然它会解决别人,只是不会被强迫)。
我所做的不同之处在于,我与之前的电脑不同(Windows现在,以前的Arch),而我正在使用Play 2.1.1而不是2.1。
编辑:我也是一个代理,我认为这可能已经解决了,因为我可以解决一些依赖,但我看不到任何其他原因,而不是代理与sbt。我可以看到我的浏览器中的mater repo为squeryl,但是sbt没有找到它。
build.properties:
sbt.version = 0.12.2
scala:
val appDependencies = Seq(
//在此添加您的项目依赖项,
jdbc,
org.squeryl%%squeryl%0.9.5-6
)
plugins.sbt:
//注释在初始化期间获取更多信息
logLevel:=级别.Warn
// Typesafe存储库
resolvers + =Typesafe存储库在http://repo.typesafe.com/typesafe/releases/
//使用Play项目的Play sbt插件
addSbtPlugin(播放%sbt-plugin%2.1.1)
控制台:
C:\Path\To\Play\\ \\ APP>播放运行
[info]从C:\Path\To\Play\APP
....
[警告]模块加载项目定义没有找到:org.squeryl#squeryl_2.10; 0.9.5-6
[warn] ==== local:尝试
[warn] C:\Path\To\Play\ play-2.1.1\repository\local\org.squeryl\squeryl_2.10
[warn] ==== Typesafe Releases存储库:尝试
[warn] http:// repo。 typesafe.com/typesafe/releases/org/squeryl/squeryl_2.10/0.9.5-6/squeryl_2.10-0.9.5-6.po
[warn] ==== Typesafe Snapshots存储库:试过
[warn] http://repo.typesafe.com/typesafe/snapshots/org/squeryl/squeryl_2.10/0.9.5-6/squeryl_2.10-0.9.5-6.p
[警告] ==== public:试过
[警告] http://repo1.maven.org/maven2/org/squeryl/squeryl_2.10/0.9.5-6/squeryl_2.10-0.9.5- 6.pom
[警告] :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::
[warn] ::已解析的依存关系::
[警告] ::::::::::::::::::::::::: ::::::::::::::::::::::::
[warn] :: org.squeryl#squeryl_2.10; 0.9.5-6:not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
sbt.ResolveException:unresol ved依赖:org.squeryl#squeryl_2.10; 0.9.5-6:没有找到
在sbt.IvyActions $ .sbt $ IvyActions $$ resolve(IvyActions.scala:214)
at sbt.IvyActions $$ anonfun $ update $ 1.apply(IvyActions.scala:122)
...
在java.util.concurrent.ThreadPoolExecutor $ Worker.run(未知来源)
在java.lang .Thread.run(Unknown Source)
[error](*:update)sbt.ResolveException:未解析依赖关系:org.squeryl#squeryl_2.10; 0.9.5-6:未找到
[warn]一些依赖关系没有正确的重新编译,所以类加载器不可用
[info]更新{file:/ C:/ Path / To / Play / APP}
[warn] module not found:org。 squeryl#squeryl_2.10; 0.9.5-6
[warn] ==== local:尝试
[warn] C:\Path\To\Play\play-2.1.1 \repository\local\org.squeryl\squeryl_2.10
[warn] ==== Typesafe Releases存储库:尝试
[warn] http://repo.typesafe.com/typesafe /releases/org/squeryl/squeryl_2.10/0.9.5-6/squeryl_2.10-0.9.5-6.po
[警告] ==== Typesafe快照存储库:尝试
[警告] http://repo.typesafe.com/typesafe/snapshots/org/squeryl/squeryl_2.10/0.9.5-6/squeryl_2.10- 0.9.5-6.p
[warn] ==== public:试过
[警告] http://repo1.maven.org/maven2/org/squeryl/squeryl_2.10/0.9。 5-6 / squeryl_2.10-0.9.5-6.pom
[warn] ::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::******************************************************************** ::::::::::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.squeryl#squeryl_2.10 ; 0.9.5-6:未找到
[警告] ::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::
sbt.ResolveException:未解决的依赖关系:org.squeryl#squeryl_2.10; 0.9.5-6:没有找到
在sbt.IvyActions $ .sbt $ IvyActions $$ resolve(IvyActions.scala:214)
.....
在java.lang.Thread.run(未知来源)
[error](*:update)sbt .ResolveException:未解析的依赖关系:org.squeryl#squeryl_2.10; 0.9.5-6:未找到
它最终成为我的代理在工作中的一个问题,它是设置错误,必须纠正它。一切都很好!
I recently started a new project with the Play! Framework and Scala. I'm used to using Squeryl for my ORM, but for some reason it cannot resolve my dependency this time (Although it will resolve others, just not squeryl).
The only thing I'm doing differently is that I'm on a different computer than I was before (Windows now, Arch before) and I'm using Play 2.1.1 instead of 2.1.
EDIT: I am also behind a proxy, I thought this may have been resolved since I can resolve some dependencies, but I can't see any other reason than the proxy is screwing with sbt. I can see the maven repo for squeryl in my browser, but sbt fails to find it.
build.properties:
sbt.version=0.12.2
Build.scala:
val appDependencies = Seq(
// Add your project dependencies here,
jdbc,
"org.squeryl" %% "squeryl" % "0.9.5-6"
)
plugins.sbt:
// Comment to get more information during initialization
logLevel := Level.Warn
// The Typesafe repository
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
// Use the Play sbt plugin for Play projects
addSbtPlugin("play" % "sbt-plugin" % "2.1.1")
Console:
C:\Path\To\Play\APP>play run
[info] Loading project definition from C:\Path\To\Play\APP
....
[warn] module not found: org.squeryl#squeryl_2.10;0.9.5-6
[warn] ==== local: tried
[warn] C:\Path\To\Play\play-2.1.1\repository\local\org.squeryl\squeryl_2.10
[warn] ==== Typesafe Releases Repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/org/squeryl/squeryl_2.10/0.9.5-6/squeryl_2.10-0.9.5-6.po
[warn] ==== Typesafe Snapshots Repository: tried
[warn] http://repo.typesafe.com/typesafe/snapshots/org/squeryl/squeryl_2.10/0.9.5-6/squeryl_2.10-0.9.5-6.p
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/org/squeryl/squeryl_2.10/0.9.5-6/squeryl_2.10-0.9.5-6.pom
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.squeryl#squeryl_2.10;0.9.5-6: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
sbt.ResolveException: unresolved dependency: org.squeryl#squeryl_2.10;0.9.5-6: not found
at sbt.IvyActions$.sbt$IvyActions$$resolve(IvyActions.scala:214)
at sbt.IvyActions$$anonfun$update$1.apply(IvyActions.scala:122)
...
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[error] (*:update) sbt.ResolveException: unresolved dependency: org.squeryl#squeryl_2.10;0.9.5-6: not found
[warn] some of the dependencies were not recompiled properly, so classloader is not avaialable
[info] Updating {file:/C:/Path/To/Play/APP}
[warn] module not found: org.squeryl#squeryl_2.10;0.9.5-6
[warn] ==== local: tried
[warn] C:\Path\To\Play\play-2.1.1\repository\local\org.squeryl\squeryl_2.10
[warn] ==== Typesafe Releases Repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/org/squeryl/squeryl_2.10/0.9.5-6/squeryl_2.10-0.9.5-6.po
[warn] ==== Typesafe Snapshots Repository: tried
[warn] http://repo.typesafe.com/typesafe/snapshots/org/squeryl/squeryl_2.10/0.9.5-6/squeryl_2.10-0.9.5-6.p
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/org/squeryl/squeryl_2.10/0.9.5-6/squeryl_2.10-0.9.5-6.pom
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.squeryl#squeryl_2.10;0.9.5-6: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
sbt.ResolveException: unresolved dependency: org.squeryl#squeryl_2.10;0.9.5-6: not found
at sbt.IvyActions$.sbt$IvyActions$$resolve(IvyActions.scala:214)
.....
at java.lang.Thread.run(Unknown Source)
[error] (*:update) sbt.ResolveException: unresolved dependency: org.squeryl#squeryl_2.10;0.9.5-6: not found
It ended up being an issue with my proxy at work, it was setup wrong and had to correct it. All is well now!
这篇关于SBT不能解决Squeryl依赖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!