Re: [sbt] [sbteclipse] Why won't sbteclipse generate Eclipse files for my main project, only for subprojects?

167 views
Skip to first unread message

Heiko Seeberger

unread,
Dec 9, 2012, 10:06:32 AM12/9/12
to simple-b...@googlegroups.com
Please read the documentation: https://github.com/typesafehub/sbteclipse/wiki/Using-sbteclipse
See skipParents in particular.

Thanks
Heiko

On Dec 7, 2012, at 11:27 PM, KajMagnus <kajma...@gmail.com> wrote:

Hi

When I run `eclipse`, it ignores my main project.

Does anyone know what's happening? (Why does Eclipse ignore the main project?)

The main project is a Play Framework project.
One of the other projects is also a Play Framework project, located in ./modules/.
Two of the other projects are normal SBT projects, located in ./modules/.

Details:
---------

"SBT Eclipse Plugin" version:
    addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.1.0")

Play Framework version 2.1-RC1.

Eclipse version "Juno Service Release 1".
Scala IDE for Eclipse version "2.1.0.m2-2_10-201211230940-1474a91"


This is what "eclipse" does:  (My main project is "debiki-app-play".)

[debiki-app-play] $ eclipse with-source=true
[info] About to create Eclipse project files for your project(s).
[info] Resolving org.specs2#specs2-scalaz-core_2.10.0-RC1;6.0.1 ...
[info] Successfully created Eclipse project files for project(s):
[info] securesocial
[info] debiki-dao-pgsql
[info] debiki-tck-dao
[info] debiki-core

It does find my 4 subprojects though.

(When I import the main project directory into Eclipse, only the 4 subprojects appears in the project tree, of course)

This is the directory structure:

├── app
│   ├── controllers
│   ├── services
│   └── views
├── client
├── conf
├── modules
│   ├── debiki-core
│   │   ├── src
│   │   └── target
│   ├── debiki-dao-pgsql
│   │   ├── lib
│   │   ├── project
│   │   ├── src
│   │   └── target
│   ├── debiki-tck-dao
│   │   ├── project
│   │   ├── src
│   │   └── target
│   ├── securesocial
│   │   ├── app
│   │   ├── conf
│   │   ├── dist
│   │   ├── public
│   │   ├── target
│   │   └── test
│   └── securesocial-git
│       ├── conf
│       ├── module-code
│       └── samples
├── node_modules
├── project
│   ├── project
│   │   └── target
│   └── target
│       ├── config-classes
│       ├── resolution-cache
│       ├── scala-2.9.1
│       ├── scala-2.9.2
│       └── streams
├── public
├── target
├── test


--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To view this discussion on the web visit https://groups.google.com/d/msg/simple-build-tool/-/P72FzcSPLsEJ.
To post to this group, send email to simple-b...@googlegroups.com.
To unsubscribe from this group, send email to simple-build-t...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.

KajMagnus

unread,
Dec 10, 2012, 4:57:37 AM12/10/12
to simple-b...@googlegroups.com
Thanks! Now it works; I added to my Build.scala: 

  import com.typesafe.sbteclipse.plugin.EclipsePlugin.EclipseKeys
  ...
    override def settings =
      super.settings ++ ... ++
      Seq(EclipseKeys.skipParents := false, resolvers := Seq())

Best regards, KajMagnus
Reply all
Reply to author
Forward
0 new messages