首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Eclipse中的Securesocial

Eclipse中的Securesocial
EN

Stack Overflow用户
提问于 2012-08-06 10:52:15
回答 2查看 537关注 0票数 0

当我试图用一个依赖于securesocial的项目来设置eclipse时,我得到了这个消息:

项目'xxx‘缺少必需的Java项目:'securesocial’

我听从了this guy的建议

这是我的Build.scala:

代码语言:javascript
复制
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)

}
EN

回答 2

Stack Overflow用户

发布于 2012-08-07 03:02:41

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

票数 0
EN

Stack Overflow用户

发布于 2012-11-07 17:35:39

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/11821995

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档