首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >试图将jasperreports添加到Framework2.2.0中时未解决的依赖关系

试图将jasperreports添加到Framework2.2.0中时未解决的依赖关系
EN

Stack Overflow用户
提问于 2014-01-22 17:17:35
回答 1查看 2.3K关注 0票数 3

我想将jasperreports库添加到我的play Framework2.2.0应用程序中。在我的Build.sbt中,我添加了以下几行:

代码语言:javascript
运行
复制
resolvers ++= Seq(
Resolver.url("Objectify Play Repository", url("http://schaloner.github.io/releases/"))(Resolver.ivyStylePatterns),
Resolver.url("Objectify Play Snapshot Repository", url("http://schaloner.github.io/snapshots/"))(Resolver.ivyStylePatterns)

libraryDependencies ++= Seq(
  javaJdbc,
  javaEbean,
  cache,
  "commons-io" % "commons-io" % "2.4",
  "mysql" % "mysql-connector-java" % "5.1.27",
  "be.objectify" %% "deadbolt-java" % "2.2-RC3",
  "net.sf.jasperreports" % "jasperreports"  % "5.5.0"
)
play.Project.playJavaSettings

但是,在构建时,我得到了以下错误:

代码语言:javascript
运行
复制
[info] Resolving com.lowagie#itext;2.1.7.js2 ...
[warn]  module not found: com.lowagie#itext;2.1.7.js2
[warn] ==== local: tried
[warn]   /home/rook/play-2.2.0/repository/local/com.lowagie/itext/2.1.7.js2/ivys/ivy.xml
[warn] ==== Maven2 Local: tried
[warn]   file:/home/rook/.m2/repository/com/lowagie/itext/2.1.7.js2/itext-2.1.7.js2.pom
[warn] ==== sonatype-oss-snapshots: tried
[warn]   http://oss.sonatype.org/content/repositories/snapshots/com/lowagie/itext/2.1.7.js2/itext-2.1.7.js2.pom
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/com/lowagie/itext/2.1.7.js2/itext-2.1.7.js2.pom
[warn] ==== Objectify Play Repository: tried
[warn]   http://schaloner.github.io/releases/com.lowagie/itext/2.1.7.js2/ivys/ivy.xml
[warn] ==== Objectify Play Snapshot Repository: tried
[warn]   http://schaloner.github.io/snapshots/com.lowagie/itext/2.1.7.js2/ivys/ivy.xml
[warn] ==== com.lowagie#itext;2.1.7.js2: tried
[warn] ==== Typesafe Releases Repository: tried
[warn]   http://repo.typesafe.com/typesafe/releases/com/lowagie/itext/2.1.7.js2/itext-2.1.7.js2.pom
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: com.lowagie#itext;2.1.7.js2: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::

我该怎么做才能解决这个问题?我读过,如果我添加了一个特定的jasperreport存储库(即:http://jasperreports.sourceforge.net/maven2),这个问题就会得到解决,但我不知道如何向Build.sbt文件中添加第三方存储库。有什么想法吗?

EN

Stack Overflow用户

回答已采纳

发布于 2014-01-26 15:14:36

添加到您的build.sbt中:

代码语言:javascript
运行
复制
resolvers += "Jasper" at "http://jasperreports.sourceforge.net/maven2" 

或者再用一个条目使用Seq。

票数 4
EN
查看全部 1 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/21289578

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档