Fork me on GitHub

Plugin Documentation

Goals available for this plugin:

Goal Description
jspc:compile

This goal will compile jsps for a webapp so that they can be included in a war.

It is a fork of jetty-jspc-maven-plugin but has the following improvements:

  • Faster: ability of multi-threading see threads parameter
  • Not stop at the first error : see stopAtFirstError parameter

The compiler used in this plugin the Apache Jasper 9.0.12 but it can be overloaded.

jspc:help Display help information on jspc-maven-plugin.
Call mvn jspc:help -Ddetail=true -Dgoal=<goal-name> to display parameter details.

System Requirements

The following specifies the minimum requirements to run this Maven plugin:

Maven 3.9.6
JDK 11

Usage

You should specify the version in your project's plugin configuration:

<project>
  ...
  <build>
    <!-- To define the plugin version in your parent POM -->
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>io.leonard.maven.plugins</groupId>
          <artifactId>jspc-maven-plugin</artifactId>
          <version>4.2.1-SNAPSHOT</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>io.leonard.maven.plugins</groupId>
        <artifactId>jspc-maven-plugin</artifactId>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

For more information, see "Guide to Configuring Plug-ins"