Tagebuch eines Technikers

Thursday, May 15, 2008

Get Jetty to run without WAR

After looking at Appfuse for quite a while, I finally found out how to enable the mvn jetty:run command. This is especially important for editing the front-end, since it does not need packaging the war file when there were just JSP pages edited.

The solution, hidden somewhere in the AppFuse FAQ:
  1. Run mvn war:inplace in the project's base folder
  2. Delete the folder src/main/webapp/WEB-INF/lib
Nothing more to do. Now you can run mvn jetty:run. Your web page will be updated if you update your jsp files and refresh the browser.

No comments: