Using eclipse hotdeploy
From Lift
this is out of date
create a new project from lift-archetype-blank (or from an other archetype):
mvn archetype:generate -U \ -DarchetypeGroupId=net.liftweb \ -DarchetypeArtifactId=lift-archetype-blank \ -DarchetypeVersion=0.9 \ -DremoteRepositories=http://scala-tools.org/repo-releases \ -DgroupId=your.proj.gid -DartifactId=your-proj-id
set eclipse configuration:
mvn eclipse:eclipse
compile src and test
mvn test
Eclipse needs to know the path to the local maven repository. Therefore the classpath variable M2_REPO has to be set. Execute the following command:
mvn -Declipse.workspace=<path-to-eclipse-workspace> eclipse:add-maven-repo
start eclipse
import project : File>Import...>Existing project into workspace
right click on your-proj-id > src/test/scala > RunWebApp.scala and select Debug As > Open Debug Dialog...
check that the value of "Scala application object" is RunWebApp (there is a bug in some version scala plugin about the location of the class when you right click and run directly (the first time), also, be sure it's not set to src.test.scala.RunWebApp.)
click on Debug
in the console you should see something like
>>> STARTING EMBEDDED JETTY SERVER, PRESS ANY KEY TO STOP 2007-12-03 10:39:53.081::INFO: NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet 2007-12-03 10:39:54.796::INFO: Started SocketConnector@0.0.0.0:8080
open your browser to http://localhost:8080/
... Welcome to 19 your-proj-id at ...
back to the java or scala perspective
change the contains of your-proj-id > src/test/scala > your.proj.gid.snippet > HelloWorld.scala, add text betten <span> tags
save the change (=> auto compile)
refesh your browser on http://localhost:8080/
change is applied without need to restart :)

