sbt 0.10.0 not playing nice with jetty/maven; 0.7.5 is okay

118 views
Skip to first unread message

Robert

unread,
Jun 5, 2011, 6:47:15 PM6/5/11
to simple-build-tool
Running a project on maven and sbt 0.10.0. If I revert version of sbt
to 0.7.5, sbt understands "jetty-run" but the newer sbt 0.10.0 doesn't
like it. This is what I get on the newer version:

> jetty-run
[error] Not a valid command: jetty-run
[error] Not a valid project ID: jetty-run
[error] Not a valid configuration: jetty-run
[error] Not a valid key: jetty-run (similar: run)
[error] jetty-run
[error] ^

Admittedly, I'm very new to sbt, but why will it work on one version,
and not on the newer? What am I not looking at? For now just running
it against 0.7.5, but would love to know my error.

Heiko Seeberger

unread,
Jun 5, 2011, 7:13:45 PM6/5/11
to simple-b...@googlegroups.com
Robert,

Some things changed dramatically from 0.7 to 0.10. I suggest you look at the migration doc => https://github.com/harrah/xsbt/wiki/Migrating-from-SBT-0.7.x-to-0.10.x

Regarding your specific issue: Jetty support is no longer included in SBT (core), but there is a plugin avaliable => https://github.com/siasia/xsbt-web-plugin

Heiko


--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
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.




--

Heiko Seeberger
Twitter: hseeberger
Blog: heikoseeberger.name
Company: Typesafe - Enterprise-Grade Scala from the Experts


batkins

unread,
Jun 8, 2011, 10:49:42 PM6/8/11
to simple-build-tool
Hi Robert,

I had this same problem while migrating a Lift project. Here's what I
did to resolve it:

http://moreindirection.blogspot.com/2011/06/migrating-to-sbt-010-lift.html

I suspect that the web plugin hasn't been configured (steps 3 and 4).

HTH,
Bill
Reply all
Reply to author
Forward
0 new messages