如何将Poi Scala库添加到Play项目?

时间:2014-02-16 07:16:34

标签: sbt playframework-2.2

我想在我的Play框架项目中使用Poi Scala库,并且我将Poi Scala库添加到build.sbt中的libraryDependencies:

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

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

提前致谢!

1 个答案:

答案 0 :(得分:0)

@gourlaysama说:

  

似乎发布的poi-scala的最后一个版本是   0.9,参见bintray(bintray.com/bintray/jcenter / ...),sonatype(oss.sonatype.org/index.html#nexus-search;quick~folone)和maven   中心(repo1.maven.org/maven2/info/folone/poi-scala_2.10)。也许   这是一个疏忽,或者他们可能会转移到另一个maven回购。   我建议在github.com/folone/poi.scala上打开一个问题。

这是对的,库确实不在maven存储库中。我通过@gourlaysama的推荐在github.com/folone/poi.scala上发了一个问题:

Issue