benjohnde/play-pdf

Dependency resolution failure on install

sslotsky opened this issue · 4 comments

I've added the appropriate lines to my Build.scala file;

val appDependencies = Seq(
  "pdf" % "pdf_2.9.1" % "0.2"
)   

val main = PlayProject(appName, appVersion, appDependencies, mainLang = JAVA).settings(
  resolvers += Resolver.url("My GitHub Play Repository", url("http://www.joergviola.de/releases/"))(Resolver.ivyStylePatterns)
)   

But when I restart play, I get some unresolved dependencies. Is this something I can work around?

[info] Set current project to select_account (in build file:/home/sam/select_account/)

[info] Updating {file:/home/sam/select_account/}select_account...
[info] downloading http://www.joergviola.de/releases/pdf/pdf_2.9.1/0.2/jars/pdf_2.9.1.jar ...
[info] [SUCCESSFUL ] pdf#pdf_2.9.1;0.2!pdf_2.9.1.jar (501ms)
[info] downloading http://repo.typesafe.com/typesafe/releases/org/xhtmlrenderer/core-renderer/R8/core-renderer-R8.jar ...
[info] [SUCCESSFUL ] org.xhtmlrenderer#core-renderer;R8!core-renderer.jar (1795ms)
[info] downloading http://repo.typesafe.com/typesafe/releases/com/lowagie/itext/2.0.8/itext-2.0.8.jar ...
[info] [SUCCESSFUL ] com.lowagie#itext;2.0.8!itext.jar (1018ms)
[info] downloading http://repo.typesafe.com/typesafe/releases/bouncycastle/bcmail-jdk14/138/bcmail-jdk14-138.jar ...
[info] [SUCCESSFUL ] bouncycastle#bcmail-jdk14;138!bcmail-jdk14.jar (487ms)
[info] downloading http://repo.typesafe.com/typesafe/releases/bouncycastle/bcprov-jdk14/138/bcprov-jdk14-138.jar ...
[info] [SUCCESSFUL ] bouncycastle#bcprov-jdk14;138!bcprov-jdk14.jar (941ms)
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: play#play_2.9.1;2.0.1: configuration not found in play#play_2.9.1;2.0.1: 'master'. It was required from pdf#pdf_2.9.1;0.2 compile
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[error] {file:/home/sam/select_account/}select_account/*:update: sbt.ResolveException: unresolved dependency: play#play_2.9.1;2.0.1: configuration not found in play#play_2.9.1;2.0.1: 'master'. It was required from pdf#pdf_2.9.1;0.2 compile
[error] java.util.NoSuchElementException: Either.right.value on Left
[error] Use 'last' for the full log.

My bad. Should've been using play 2.0, not 2.0.1

Ahm - other way round, not? - Module is written against 2.0.1, so you've to use that, too.

Sorry, I don't quite understand your comment. Are you saying that there's a version of this module available for 2.0.1 and I should've been pointing to that instead?

My coworkers were all using play 2.0 anyway so I figured the best way would be to just downgrade to what they have for consistency. Thanks!

;-) I'm using Play 2.0.1 and use it to build the module and the sample.
Thus I'd expect you should use Play 2.0.1 also. I'd also expect the above error message if you use Play 2.0.