I am trying to get a game project to have another local scala project as a dependency. I have a local scala project that deploys in my local M2 repository with this line in my configuration file.
publishTo := Some(Resolver.file("file", new File(Path.userHome.absolutePath+"/.m2/repository")))
And I'm trying to load a dependency in my play project using this line
val appDependencies = Seq( "com.experimentalcork" %% "timeywimeyentities" % "0.0.2" ) val main = PlayProject(appName, appVersion, appDependencies, mainLang = SCALA).settings( resolvers += "Local Maven Repository" at "file://" + Path.userHome.absolutePath + "/.m2/repository",testOptions in Test := Nil )
The magazines, as I do the "play compile", say that it cannot find the dependency. He looks in the place where I indicated the addiction will be.
[warn] ==== Local Maven Repository: tried [warn] file:
And when I go to check this directory, I can confirm that the pom and jar files are there. I am completely puzzled by how it might look in a directory that contains pom and does not find it. Has anyone had experience with this?
source share