Using Embedded Resin as a Development Container
I recently read this article and realised that I had never blogged about the resin plugin that works perfectly with lift for development and deployment.
Heres what you need to add to your pom.xml
<build>
...
<finalname>${project.name}</finalname>
...
<plugin>
<groupid>com.caucho</groupid>
<artifactid>resin-maven-plugin</artifactid>
<version>3.1.6</version>
<configuration>
<contextpath>/</contextpath>
</configuration>
</plugin>
...
</build>
<pluginrepositories>
...
<pluginrepository>
<id>caucho</id>
<name>Caucho</name>
<url>http://caucho.com/m2</url>
</pluginrepository>
...
</pluginrepositories>
Note, the final name var is important, as thats what resin uses to point at. Dont worry tho, as lift already has a name element so provided you haven’t deleted it, your laughing.
Next, to boot the server, just do:
mvn resin:run
That should be it! Enjoy!