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>
   ...
    <!-- resin plugin -->
      <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!

Sorry, comments are closed for this article.