Monday, September 14, 2009

Precompiling JSPs with Maven - Part 2

If you use war dependencies for building your web applications the approach described in part 1 will not work for your application because the JSPC-Plugin by default works on your local JSP files and is executed during the lifecycle phase "process-classes".

Here is how to deal with this added requirement.

Sunday, September 13, 2009

Precompiling JSP Pages with Maven

Recently I encountered the requirement to precompile JSP pages in a Maven webapp project using the following environment:
  • Java 5
  • Tomcat 5.x
  • Jsp pages with XML Syntax (jspx)
Solving the problem is not too difficult if you keep some things in mind.