Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8930561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:55:08+00:00 2026-06-15T08:55:08+00:00

I just want to create a directory layout for my scala project with sbt

  • 0

I just want to create a directory layout for my scala project with sbt and sbteclipse. Following is my sbt file.

import com.typesafe.sbteclipse.plugin.EclipsePlugin.EclipseKeys

name := "BGS"

organization := "com.example"

version := "1.0.0"

scalaVersion := "2.9.2"

scalacOptions ++= Seq("-deprecation")

EclipseKeys.createSrc := EclipseCreateSrc.Default + EclipseCreateSrc.Resource

EclipseKeys.projectFlavor := EclipseProjectFlavor.Scala

scalaSource in Compile <<= (sourceDirectory in Compile)(_ / "scala")

scalaSource in Test <<= (sourceDirectory in Test)(_ / "scala")

libraryDependencies += "org.scalatest" %% "scalatest" % "1.8" % "test"

libraryDependencies += "junit" % "junit" % "4.10" % "test"

unmanagedBase <<= baseDirectory { base => base / "lib" }

unmanagedJars in Compile <<= baseDirectory map { base => (base ** "*.jar").classpath }

In this sbt file, I had to use folling to lines to force creation of Scala directories:

scalaSource in Compile <<= (sourceDirectory in Compile)(_ / "scala")

scalaSource in Test <<= (sourceDirectory in Test)(_ / "scala")

Furthermore, after running “eclipse” from sbt console, I imported the project to Eclipse, but I could not create Scala class. Eclipse project icon has “J” letter attached to it indicating it is a Java project πŸ˜•

Why does sbt and sbteclipse default to Java?

I am running sbt version 0.12 (latest version as of Nov 2012), scala 2.9.2

For your information, what I am aiming to do is use sbt to create working project with following directory structure:

β”œβ”€β”€ build.sbt
β”œβ”€β”€ lib
β”‚Β Β  β”œβ”€β”€ biojava3-core-3.0.4.jar
β”œβ”€β”€ project
β”‚Β Β  β”œβ”€β”€ plugins.sbt
β”‚Β Β  β”œβ”€β”€ project
β”‚Β Β  β”‚Β Β  └── target
β”‚Β Β  └── target
β”‚Β Β      β”œβ”€β”€ config-classes
β”‚Β Β      β”œβ”€β”€ scala-2.9.2
β”‚Β Β      └── streams
β”œβ”€β”€ src
β”‚Β Β  β”œβ”€β”€ main
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ java
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ resources
β”‚Β Β  β”‚Β Β  └── scala
β”‚Β Β  └── test
β”‚Β Β      β”œβ”€β”€ java
β”‚Β Β      β”œβ”€β”€ resources
β”‚Β Β      └── scala
β”œβ”€β”€ target
β”‚Β Β  β”œβ”€β”€ scala-2.9.2
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ cache
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ classes
β”‚Β Β  β”‚Β Β  └── test-classes
β”‚Β Β  └── streams
β”‚Β Β      └── compile
└── test
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T08:55:09+00:00Added an answer on June 15, 2026 at 8:55 am

    Since I haven’t got any desirable answers so far, I am trending into Typesafe Stack. I removed manually-installed scala and sbt and I am using everything from Typesafe Stack. I will update more when I am done testing with this way.

    Here is the final update as I promised:

    I followed instruction in this link and it worked perfectly:
    http://typesafe.com/resources/typesafe-stack/downloading-installing.html

    Detailed information in case somebody want to follow for Mac OSX:

    Basically, I first I switched macport to homebrew following instruction here:

    http://bitboxer.de/2010/06/03/moving-from-macports-to-homebrew/
    

    Then I did:

    brew install scala sbt maven giter8
    

    Then create a Scala project from command line:

    g8 typesafehub/scala-sbt
    

    Finally I followed instruction here to add sbteclipse and convert the project to eclipse:

    https://github.com/typesafehub/sbteclipse
    

    Everything works as I expect.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just want to create an RPM file to distribute my Linux binary foobar,
I just want to understand why I cannot create a protected enum on C#?
How can I create my own login form on frontend? I don’t just want
For our deployments, I just want to drop the existing stored proc, then re-create
Originally, I just want to verify that session_start locks on session. So, I create
I'm looking for as simple way to create an identity set. I just want
I want to create a button in c# with no content but just a
I've just got my Flash Builder 4 and now I want to create a
I've just created anew schema & want to create a new table. When ever
I'm just getting the basics down for objective c. I want to create a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.