0

当我尝试使用依赖于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)

}
4

2 回答 2

0

在 Eclipse 中,将 Secure Social 模块作为常规 Eclipse 项目导入。

于 2012-08-06T19:02:40.890 回答
0

将securesocial模块的“app”文件夹添加到eclipse中项目的源构建路径。

于 2012-11-07T09:35:38.643 回答