2014-02-16 14 views
1

我想在我的游戏框架项目中使用POI Scala库,我在build.sbt添加POI Scala库,以libraryDependencies:如何添加Poi Scala库以播放项目?

libraryDependencies ++= Seq(
    jdbc, 
    anorm, 
    cache, 
    "info.folone" %% "poi-scala" % "0.11", 
    "com.typesafe.slick" %% "slick" % "2.0.0-RC1", 
    "com.typesafe.slick" %% "slick-testkit" % "2.0.0-RC1" % "test", 
    "com.typesafe.play" %% "play-slick" % "0.5.0.8", 
    "com.novocode" % "junit-interface" % "0.10" % "test", 
    "ch.qos.logback" % "logback-classic" % "0.9.28" % "test", 
    "postgresql" % "postgresql" % "9.1-901.jdbc4", 
    "postgresql" % "postgresql" % "9.1-901.jdbc4" % "test", 
    "org.webjars" %% "webjars-play" % "2.2.0", 
    "org.webjars" % "bootstrap" % "2.3.1" 
) 

通过指令Poi Scala

,但是,当我做命令“戏更新“出现以下错误:

[warn] module not found: info.folone#poi-scala_2.10;0.11 
[warn] ==== local: tried 
[warn] c:\tools\play-2.2.1\repository\local\info.folone\poi-scala_2.10\0.11\iv 
ys\ivy.xml 

[warn] ==== Maven2 Local: tried 
[warn] file:/C:/Users/boyfox/.m2/repository/info/folone/poi-scala_2.10/0.11/po 
i-scala_2.10-0.11.pom 
[warn] ==== public: tried 
[warn] http://repo1.maven.org/maven2/info/folone/poi-scala_2.10/0.11/poi-scala 
_2.10-0.11.pom 

[warn] ==== Typesafe Releases Repository: tried 
[warn] http://repo.typesafe.com/typesafe/releases/info/folone/poi-scala_2.10/0 
.11/poi-scala_2.10-0.11.pom 

有人知道如何解决这个问题?

在此先感谢!

+2

好像兴趣点 - 斯卡拉的最后一个版本发布了'0.9',看到bintray(:我在github.com/folone/poi.scala通过@gourlaysama的recomendation打开的问题https://bintray.com/bintray/jcenter/info.folone:poi-scala_2.10?from=general),sonatype(https://oss.sonatype.org/index.html#nexus-search;quick~folone )和maven central(http://repo1.maven.org/maven2/info/folone/poi-scala_2.10/)。也许这是一个疏忽,或者他们转移到另一个Maven回购。我建议在https://github.com/folone/poi.scala打开一个问题。 – gourlaysama

+0

感谢@gourlaysama的建议,但首先需要确定为什么找不到存在的文件。我在Sonatype快照资源库中找到了这个文件:http://repo.typesafe.com/typesafe/webapp/browserepo.html?4和http://oss.sonatype.org/content/repositories/snapshots/info/folone/poi -scala_2.10/0.11-SNAPSHOT /。我试着将Sonatype回购解析器添加到我的build.sbt文件中,但没有帮助。 –

+2

这些是快照,而不是发布。你可以添加'resolvers + = Resolver.sonatypeRepo(“snapshots”)'并将你的依赖改为'“info.folone”%%“poi-scala”%“0.11-SNAPSHOT”'来获得它。但这不是一个发布版,只是一些任意的中间版本。 – gourlaysama

回答

0

@gourlaysama说:

It seems like the last version of poi-scala that was published was 0.9, see bintray (bintray.com/bintray/jcenter/…), sonatype (oss.sonatype.org/index.html#nexus-search;quick~folone), and maven central (repo1.maven.org/maven2/info/folone/poi-scala_2.10). Maybe this is an oversight, or maybe they moved to a different maven repo. I'd recommend opening an issue at github.com/folone/poi.scala.

这是正确的,图书馆确实不是在Maven仓库。

Issue

相关问题