Full name:
org.mortbay.jetty:maven-jetty-jspc-plugin:6.1.20:jspc
Description:
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.
Attributes:
compile
.process-classes
.Name | Type | Since | Description |
---|---|---|---|
webAppSourceDirectory | String |
- |
Root directory for all html/jsp etc files |
Name | Type | Since | Description |
---|---|---|---|
classesDirectory | File |
- |
The location of the compiled classes for the webapp |
excludes | String |
- |
The comma separated list of file name patters to exclude from compilation. |
generatedClasses | String |
- |
The destination directory into which to put the compiled jsps. |
ignoreJspFragmentErrors | boolean |
- |
Whether or not to ignore precompilation errors caused by jsp fragments. |
includes | String |
- |
The comma separated list of patterns for file extensions to be
processed. By default will include all .jsp and .jspx files. Default value is: **/*.jsp, **/*.jspx . |
insertionMarker | String |
- |
Optional. A marker string in the src web.xml file which indicates where to merge in the generated web.xml fragment. Note that the marker string will NOT be preserved during the insertion. Can be left blank, in which case the generated fragment is inserted just before the </web-app> line |
javaEncoding | String |
- |
The encoding scheme to use. |
keepSources | boolean |
- |
Controls whether or not .java files generated during compilation will be preserved. |
mergeFragment | boolean |
- |
Merge the generated fragment file with the web.xml from webAppSourceDirectory. The merged file will go into the same directory as the webXmlFragment. |
packageRoot | String |
- |
Default root package for all generated classes |
schemaResourcePrefix | String |
- |
Allows a prefix to be appended to the standard schema locations so that they can be loaded from elsewhere. |
suppressSmap | boolean |
- |
Whether or not to generate JSR45 compliant debug info |
validateXml | boolean |
- |
If true, validates tlds when parsing. |
verbose | boolean |
- |
Whether or not to output more verbose messages during compilation. |
webXmlFragment | String |
- |
File into which to generate the <servlet> and <servlet-mapping> tags for the compiled jsps |
The location of the compiled classes for the webapp
java.io.File
No
${project.build.outputDirectory}
excludes :
The comma separated list of file name patters to exclude from compilation.
java.lang.String
No
The destination directory into which to put the compiled jsps.
java.lang.String
No
${project.build.outputDirectory}
Whether or not to ignore precompilation errors caused by jsp fragments.
boolean
No
false
includes :
The comma separated list of patterns for file extensions to be processed. By default will include all .jsp and .jspx files.
java.lang.String
No
**/*.jsp, **/*.jspx
Optional. A marker string in the src web.xml file which indicates where to merge in the generated web.xml fragment. Note that the marker string will NOT be preserved during the insertion. Can be left blank, in which case the generated fragment is inserted just before the </web-app> line
java.lang.String
No
The encoding scheme to use.
java.lang.String
No
UTF-8
Controls whether or not .java files generated during compilation will be preserved.
boolean
No
false
Merge the generated fragment file with the web.xml from webAppSourceDirectory. The merged file will go into the same directory as the webXmlFragment.
boolean
No
true
Default root package for all generated classes
java.lang.String
No
jsp
Allows a prefix to be appended to the standard schema locations so that they can be loaded from elsewhere.
java.lang.String
No
Whether or not to generate JSR45 compliant debug info
boolean
No
true
If true, validates tlds when parsing.
boolean
No
false
verbose :
Whether or not to output more verbose messages during compilation.
boolean
No
false
Root directory for all html/jsp etc files
java.lang.String
Yes
${basedir}/src/main/webapp
File into which to generate the <servlet> and <servlet-mapping> tags for the compiled jsps
java.lang.String
No
${basedir}/target/webfrag.xml