当我尝试使用依赖于securesocial的项目设置eclipse时,我收到以下消息:
项目“xxx”缺少必需的 Java 项目:“securesocial”
我听从了这个人的建议
这是我的 Build.scala:
import sbt._
import Keys._
import PlayProject._
import com.typesafe.sbteclipse.core.EclipsePlugin.EclipseKeys
object ApplicationBuild extends Build {
override def settings = super.settings ++ Seq(
EclipseKeys.skipParents in ThisBuild := false)
val appName = "XXX"
val appVersion = "1.0-SNAPSHOT"
val ssDependencies = Seq(
// Add your project dependencies here,
"com.typesafe" %% "play-plugins-util" % "2.0.1",
"org.mindrot" % "jbcrypt" % "0.3m"
)
val secureSocial = PlayProject(
"securesocial", appVersion, ssDependencies, mainLang = SCALA, path = file("modules/securesocial")
).settings(
resolvers ++= Seq(
"jBCrypt Repository" at "http://repo1.maven.org/maven2/org/",
"Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/"
)
)
val appDependencies = Seq(
// Add your project dependencies here,
)
// Only compile the bootstrap bootstrap.less file and any other *.less file in the stylesheets directory
def customLessEntryPoints(base: File): PathFinder = (
(base / "app" / "assets" / "stylesheets" / "bootstrap" * "bootstrap.less") +++
(base / "app" / "assets" / "stylesheets" / "bootstrap" * "responsive.less") +++
(base / "app" / "assets" / "stylesheets" * "*.less")
)
val main = PlayProject(appName, appVersion, appDependencies, mainLang = JAVA).settings(
// Add your own project settings here
lessEntryPoints <<= baseDirectory(customLessEntryPoints)
).dependsOn(secureSocial).aggregate(secureSocial)
}