public class JspcMojo
extends org.apache.maven.plugin.AbstractMojo
This goal will compile jsps for a webapp so that they can be included in a war.
At runtime, the plugin will use the jsp2.0 jspc compiler if you are running on a 1.4 or lower jvm. If you are using a 1.5 jvm, then the jsp2.1 compiler will be selected. (this is the same behaviour as the jetty plugin for executing webapps).
Note that the same java compiler will be used as for on-the-fly compiled jsps, which will be the Eclipse java compiler.
See Usage Guide for instructions on using this plugin.
Modifier and Type | Class and Description |
---|---|
static class |
JspcMojo.JettyJspC
JettyJspC
Add some extra setters to standard JspC class to help configure it
for running in maven.
|
Modifier and Type | Field and Description |
---|---|
static String |
END_OF_WEBAPP |
static String |
PRECOMPILED_FLAG |
Constructor and Description |
---|
JspcMojo() |
Modifier and Type | Method and Description |
---|---|
void |
cleanupSrcs()
Until Jasper supports the option to generate the srcs in a different dir
than the classes, this is the best we can do.
|
void |
compile() |
void |
execute() |
void |
mergeWebXml()
Take the web fragment and put it inside a copy of the web.xml.
|
public static final String END_OF_WEBAPP
public static final String PRECOMPILED_FLAG
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
public void cleanupSrcs() throws Exception
Exception
public void mergeWebXml() throws Exception
Exception
Copyright © 1995-2015 Webtide. All Rights Reserved.