Local dependencies resolved by SBT but not by Play! Framework

前端 未结 1 1261
庸人自扰
庸人自扰 2021-02-09 06:18

I\'m trying to use banana-RDF, a locally published library (published using SBT\'s publish-local) from a Play! Framework project, but when running compile

相关标签:
1条回答
  • The problem is that SBT's publish-local publishes your library to ~/.ivy2/local, whereas Play seems to have his ivy2 local repository pointer to the ivy2 repository of his own installation folder (your /home_local/.installedSoftware/play-2.1.1/repository/local).

    You can add for example this resolver to your Play's Build.scala:

    resolvers += Resolver.file("Local repo", file(System.getProperty("user.home") + "/.ivy2/local"))(Resolver.ivyStylePatterns)
    
    0 讨论(0)
提交回复
热议问题