播放框架2.3.8,找不到org.apache.poi依赖项

时间:2015-11-26 15:32:55

标签: maven playframework sbt ivy playframework-2.3

我将org.apache.poi添加到我的依赖项中,但它无法解析。

libraryDependencies ++= Seq(
  "postgresql" % "postgresql" % "9.1-901-1.jdbc4",
  "net.sf.jasperreports" % "jasperreports" % "6.0.3", 
  "net.sf.jasperreports" % "jasperreports-fonts" % "6.0.0", 
  "com.typesafe.play" %% "play-mailer" % "2.4.1",
  "org.apache.poi" %% "poi" % "3.13", 
  javaJdbc,
  javaEbean,
  cache,
  javaWs
)

获取错误,它确实搜索但未找到。有趣的是:

Warning:Play 2 Compiler:  ==== public: tried
Warning:Play 2 Compiler:  http://repo1.maven.org/maven2/org/apache/poi/poi_2.11/3.13/poi_2.11-3.13.pom
Error:Play 2 Compiler: 
 (*:update) sbt.ResolveException: unresolved dependency: org.apache.poi#poi_2.11;3.13: not found

但实际上,pom文件的位置在这里:

https://repo1.maven.org/maven2/org/apache/poi/poi/3.13/poi-3.13.pom

为什么播放框架会附加2.11版本?

1 个答案:

答案 0 :(得分:1)

只需删除一个百分比符号

即可
banner.setLayoutParams()