sbt doesn't look at POMs. You need to create Project file and add the
dependencies in there.

The example in the following is a little old, but it shows what you need
http://code.google.com/p/simple-build-tool/wiki/WebApplicationExample

Here's an updated example:
import sbt._

class HelloLiftProject(info: ProjectInfo) extends DefaultWebProject(info)
{
  val lift = "net.liftweb" % "lift-webkit" % "2.0-M1" % "compile"
  val jetty6 = "org.mortbay.jetty" % "jetty" % "6.1.14" % "test"

  // required because Ivy doesn't pull repositories from poms
  val smackRepo = "m2-repository-smack" at "http://maven.reucon.com/public";
}

Tim

On Thu, Feb 11, 2010 at 10:24 AM, Mads Hartmann <[email protected]> wrote:
> Hello everyone,
> I was hoping I could get some help with an SBT error I'm getting:
>
> [error] /Users/Mads/Dev/logicOfScientificDiscovery/src/main/scala/
> sidewayscoding/model/Discovery.scala:7: not found: value net
> [error] import net.liftweb._
> [error]        ^
> [error] /Users/Mads/Dev/logicOfScientificDiscovery/src/main/scala/
> sidewayscoding/model/Discovery.scala:19: wrong number of arguments for
> constructor Object: ()java.lang.Object
> [error]         object description extends MappedTextarea(this, 600)
> [error]
>
> ....
>
> [error] 94 errors found
>
> It looks like it doesn't import lift,
>
> build.properties
>
> #Project properties
> #Tue Feb 02 14:29:05 CET 2010
> project.organization=sidewayscoding
> project.name=LogicOfScientificDiscovery
> sbt.version=0.5.6
> project.version=1.0
> scala.version=2.7.7
> project.initialize=false
>
> pom.xm
>
>  <properties>
>    <scala.version>2.7.7</scala.version>
>  </properties>
>
> ...
>
>    <dependency>
>       <groupId>net.liftweb</groupId>
>       <artifactId>lift-mapper</artifactId>
>       <version>2.0-M1</version>
>    </dependency>
>    <dependency>
>       <groupId>net.liftweb</groupId>
>       <artifactId>lift-widgets</artifactId>
>       <version>2.0-M1</version>
>    </dependency>
>    <dependency>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Lift" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/liftweb?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.

Reply via email to