依存関係として別のローカルscalaプロジェクトを持つためにplayプロジェクトを取得しようとしています。構成ファイルにこの行を含めて、ローカルのscalaプロジェクトをローカルのM2リポジトリにデプロイしています。
publishTo := Some(Resolver.file("file", new File(Path.userHome.absolutePath+"/.m2/repository")))
そして、私はこの行で私のプレイプロジェクトに依存関係をロードしようとしています
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
)
'play compile'を実行すると、ログに依存関係が見つからないと表示されます。依存関係を指定した場所を探しています。
[warn] ==== Local Maven Repository: tried
[warn] file://C:/Users/caelrin/.m2/repository/com/experimentalcork/timeywimeyentities_2.9.1/0.0.2/timeywimeyentities_2.9.1-0.0.2.pom
そして、そのディレクトリをチェックすると、pomファイルとjarファイルがそこにあることを確認できます。pomを含むディレクトリで、pomがどのように表示され、見つからないかについて、私は完全に困惑しています。誰かがこれを経験したことがありますか?