branaway/computer-japid

unresolved dependency: japid42

sberan opened this issue · 2 comments

when running your example, using the instructions, I get the following output:

[warn]  ::::::::::::::::::::::::::::::::::::::::::::::                       
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: japid42#japid42_2.9.1;0.6: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[error] {file:/Users/sberan/Projects/computer-japid/}foo/*:update: sbt.ResolveException: unresolved dependency: japid42#japid42_2.9.1;0.6: not found
[warn] some of the dependencies were not recompiled properly, so classloader is not avaialable
[info] Updating {file:/Users/sberan/Projects/computer-japid/}foo...
[warn]  module not found: japid42#japid42_2.9.1;0.6                                    
[warn] ==== local: tried
[warn]   /usr/local/bin/../Cellar/play/2.0.4/bin/../libexec/framework/../repository/local/japid42/japid42_2.9.1/0.6/ivys/ivy.xml
[warn] ==== Typesafe Releases Repository: tried
[warn]   http://repo.typesafe.com/typesafe/releases/japid42/japid42_2.9.1/0.6/japid42_2.9.1-0.6.pom
[warn] ==== Typesafe Snapshots Repository: tried
[warn]   http://repo.typesafe.com/typesafe/snapshots/japid42/japid42_2.9.1/0.6/japid42_2.9.1-0.6.pom
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/japid42/japid42_2.9.1/0.6/japid42_2.9.1-0.6.pom
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::                       
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: japid42#japid42_2.9.1;0.6: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::

I'm sorry. It was due to a missing resolver entry for the foo sub-project:

    resolvers += Resolver.url("Japid on Github", url("http://branaway.github.com/releases/"))(Resolver.ivyStylePatterns)

The project/Build.scala should look like this:

object ApplicationBuild extends Build {

val appName         = "computer-japid"
val appVersion      = "1.0"

val appDependencies = Seq(
  "org.hibernate" % "hibernate-entitymanager" % "3.6.9.Final"
  ,"japid42" % "japid42_2.9.1" % "0.6"
)

val foo = PlayProject("foo", "0.1", appDependencies, path = file("modules/foo")).settings(
  resolvers += Resolver.url("Japid on Github", url("http://branaway.github.com/releases/"))(Resolver.ivyStylePatterns)
)

val main = PlayProject(appName, appVersion, appDependencies, mainLang = JAVA).settings(
  ebeanEnabled := false,
  resolvers += Resolver.url("Japid on Github", url("http://branaway.github.com/releases/"))(Resolver.ivyStylePatterns)
).dependsOn(foo)

}

I have fixed this in the github. Please try it again.

Works great now. Thanks!!