The lift-core dependency brings in every single lift module, even if
you aren't using them. I'd suggest you only use the ones you need,
instead. Also, I don't think the servlet dependency is necessary
anymore.
Try this for your project file:
import sbt._
class MyWebProject(info: ProjectInfo) extends DefaultWebProject(info)
{
val liftVersion = "2.0-M1"
val liftwebkit = "net.liftweb" % "lift-webkit" % liftVersion %
"compile->default"
val liftmapper = "net.liftweb" % "lift-mapper" % liftVersion %
"compile->default"
val jetty6 = "org.mortbay.jetty" % "jetty" % "6.1.22" % "test->default"
// required because Ivy doesn't pull repositories from poms
val smackRepo = "m2-repository-smack" at "http://maven.reucon.com/public"
}
This assumes you are using mapper. If not, you can remove that line.
You may also need to add other lift modules if you are using any of
them.
Note that mapper will actually bring in webkit for you, so it's
actually redundant in the example above, but I prefer to explicitly
set it.
Hth,
Tim
On Sat, Jan 30, 2010 at 11:04 AM, Neil.Lv <[email protected]> wrote:
> Hi,
>
> Lift version is: 2.0-M1, i deleted all the files in the G:/Documents
> and Settings/Ruby/.ivy2/ directory but get these errors too.
>
> #########################
> [warn] ::::::::::::::::::::::::::::::::::::::::::::::
> [warn] :: UNRESOLVED DEPENDENCIES ::
> [warn] ::::::::::::::::::::::::::::::::::::::::::::::
> [warn] :: com.rabbitmq#amqp-client;1.7.0: not found
> [warn] ::::::::::::::::::::::::::::::::::::::::::::::
> [info]
> [warn] :: problems summary ::
> [warn] :::: WARNINGS
> [warn] module not found: com.rabbitmq#amqp-client;1.7.0
> [warn] ==== local: tried
> [warn] G:/Documents and Settings/Ruby/.ivy2/local/com.rabbitmq/amqp-
> client/1.7.0/ivys/ivy.xml
> [warn] -- artifact com.rabbitmq#amqp-client;1.7.0!amqp-client.jar:
> [warn] G:/Documents and Settings/Ruby/.ivy2/local/com.rabbitmq/amqp-
> client/1.7.0/jars/amqp-client.jar
> [warn] ==== m2-repository-smack: tried
> [warn]
> http://maven.reucon.com/public/com/rabbitmq/amqp-client/1.7.0/amqp-client-1.7.0.pom
> [warn] -- artifact com.rabbitmq#amqp-client;1.7.0!amqp-client.jar:
> [warn]
> http://maven.reucon.com/public/com/rabbitmq/amqp-client/1.7.0/amqp-client-1.7.0.jar
> [warn] ==== public: tried
> [warn]
> http://repo1.maven.org/maven2/com/rabbitmq/amqp-client/1.7.0/amqp-client-1.7.0.pom
> [warn] -- artifact com.rabbitmq#amqp-client;1.7.0!amqp-client.jar:
> [warn]
> http://repo1.maven.org/maven2/com/rabbitmq/amqp-client/1.7.0/amqp-client-1.7.0.jar
> [warn] ==== Scala-Tools Maven2 Repository: tried
> [warn]
> http://scala-tools.org/repo-releases/com/rabbitmq/amqp-client/1.7.0/amqp-client-1.7.0.pom
> [warn] -- artifact com.rabbitmq#amqp-client;1.7.0!amqp-client.jar:
> [warn]
> http://scala-tools.org/repo-releases/com/rabbitmq/amqp-client/1.7.0/amqp-client-1.7.0.jar
> [warn] ::::::::::::::::::::::::::::::::::::::::::::::
> [warn] :: UNRESOLVED DEPENDENCIES ::
> [warn] ::::::::::::::::::::::::::::::::::::::::::::::
> [warn] :: com.rabbitmq#amqp-client;1.7.0: not found
> [warn] ::::::::::::::::::::::::::::::::::::::::::::::
> [info]
> [info] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
> [info] == update ==
> [error] Error running update: unresolved dependency: com.rabbitmq#amqp-
> client;1.7.0: not found
> #########################
>
> import sbt._
>
> class MyProject(info: ProjectInfo) extends DefaultWebProject(info)
> {
> val lift = "net.liftweb" % "lift-core" % "2.0-M1" % "compile-
>>default"
> val jetty6 = "org.mortbay.jetty" % "jetty" % "6.1.22" % "test-
>>default"
> val servlet = "javax.servlet" % "servlet-api" % "2.5" % "provided-
>>default"
> val specs = "org.scala-tools.testing" % "specs" % "1.6.1" % "test-
>>default"
>
> // required because Ivy doesn't pull repositories from poms
> val smackRepo = "m2-repository-smack" at "http://maven.reucon.com/
> public"
> }
>
> ############################
>
> Thanks,
>
> Cheers,
> Neil
>
> --
> 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.