Skip to content

samgabriel/jspc-maven-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSPC Maven Plugin

Build Status Maven Central Dependency Status

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

Comparison of precompiler plugins

https://tcollignon.github.io/2016/12/04/How-to-compile-JSP-with-Tomcat-and-Maven-faster.html

Release process

  1. Set version in pom.xml
  2. mvn clean deploy
  3. make commit-site

Packages

No packages published

Languages

  • Java 99.1%
  • Makefile 0.9%