This plugin precompiles JSPs. It is a fork of jetty-jspc-maven-plugin and configured as follows:
<build>
....
<plugin>
<groupId>io.leonard.maven.plugins</groupId>
<artifactId>jspc-maven-plugin</artifactId>
<version>${ENTER_VERSION_HERE}</version>
<executions>
<execution>
<id>jspc</id>
<goals>
<goal>compile</goal>
</goals>
<configuration>
</configuration>
</execution>
</executions>
</plugin>
...
</build>
It has the following improvements compared to jetty-jspc-maven-plugin:
- Faster: can be configured to run multi-threaded. For a speed comparison read the blog post below.
- More descriptive error messages: Under Maven 3 this plugin shows a clear indication of what caused the error and which file it is in
- Indication of the progress of the compilation by showing which JSP is currently being compiled
The compiler used in this plugin is Apache Jasper 8.5.8.
Full documentation of the goal is available at http://leonardehrenfried.github.com/jspc-maven-plugin/compile-mojo.html
https://tcollignon.github.io/2016/12/04/How-to-compile-JSP-with-Tomcat-and-Maven-faster.html
- Set version in
pom.xml
mvn clean deploy
make commit-site