播放框架 2.3.8,org.apache.poi 未找到依赖项
Play framework 2.3.8, org.apache.poi dependency not found
我将 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
为什么 play framework 会附加那个 2.11 版本?
只需删除一个百分比符号
"org.apache.poi" % "poi" % "3.13",
我将 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
为什么 play framework 会附加那个 2.11 版本?
只需删除一个百分比符号
"org.apache.poi" % "poi" % "3.13",