1

I am very new to Play framework and looking for steps to install play2-morphia-plugin in my application. Please help me.

4

1 回答 1

2

通常插件的自述文件包含安装指南。

对于您提到的插件,一个简单的搜索会导致这个关于安装插件的 github 问题

要安装这个插件,你必须像这样在你的项目/Build.scala 中添加它

val appDependencies = Seq(
  // Add your project dependencies here,
  "leodagdag" % "play2-morphia-plugin_2.9.1" % "0.0.5"
)

val main = PlayProject(appName, appVersion, appDependencies, mainLang = JAVA)
.settings(
  resolvers ++= Seq(DefaultMavenRepository, Resolvers.githubRepository, Resolvers.morphiaRepository)
)

object Resolvers {
  val githubRepository = "LeoDagDag repository" at "http://leodagdag.github.com/repository/"
  val morphiaRepository = "Morphia repository" at "http://morphia.googlecode.com/svn/mavenrepo/"
}
于 2013-09-05T16:46:37.693 回答