Full name:
org.apache.sling:jspc-maven-plugin:2.3.4:jspc
Description:
JspcMojo
is implements the Sling Maven JspC goal
jspc
compiling JSP into the target and creating a
component descriptor for Declarative Services to use the JSP with
the help of the appropriate adapter as component.Attributes:
compile
.compile
.Name | Type | Since | Description |
---|---|---|---|
<compilerSourceVM> |
String |
- |
The Compiler Source Version of the Java source generated from the
JSP files before compiling into classes. Default value is: 1.8 .User property is: jspc.compilerSourceVM . |
<compilerTargetVM> |
String |
- |
The Target Virtual Machine Version to generate class files for. Default value is: 1.8 .User property is: jspc.compilerTargetVM . |
<excludes> |
String[] |
- |
Excluded JSPs, empty by default |
<failOnError> |
boolean |
- |
(no description) Default value is: true .User property is: jspc.failOnError . |
<feature> |
JspcMojo$FeatureDependency |
- |
(no description) |
<generateCompilationReport> |
boolean |
2.3.0 |
Generates a compilation report text file (compilation_report.json)
in the ${project.build.outputDirectory }.
The compilation report has the following format: { "packageProviders": [ { "package": "<a Java package name>", "providers": [ "<Maven Artifact ID>" ] } ], "jspDependencies": [ { "jsp": "src/main/scripts/<a script>.jsp", "dependencies": [ "<jar file name>:<path to JSP>", "src/main/scripts/<path to file in local project>.jsp" ] } ], "unusedDependencies": [ "<Maven Artifact ID>" ] } Default value is: false .User property is: jspc.generateCompilationReport . |
<includes> |
String[] |
- |
Included JSPs, defaults to "**/*.jsp" |
<jasperClassDebugInfo> |
boolean |
- |
(no description) Default value is: true .User property is: jspc.jasper.classdebuginfo . |
<jasperEnablePooling> |
boolean |
- |
(no description) Default value is: true .User property is: jspc.jasper.enablePooling . |
<jasperGenStringAsCharArray> |
boolean |
- |
(no description) Default value is: false .User property is: jspc.jasper.genStringAsCharArray . |
<jasperIeClassId> |
String |
- |
(no description) Default value is: clsid:8AD9C840-044E-11D1-B3E9-00805F499D93 .User property is: jspc.jasper.ieClassId . |
<jasperKeepGenerated> |
boolean |
- |
(no description) Default value is: true .User property is: jspc.jasper.keepgenerated . |
<jasperMappedFile> |
boolean |
- |
(no description) Default value is: true .User property is: jspc.jasper.mappedfile . |
<jasperSuppressSmap> |
boolean |
- |
(no description) Default value is: false .User property is: jspc.jasper.suppressSmap . |
<jasperTrimSpaces> |
boolean |
- |
(no description) Default value is: false .User property is: jspc.jasper.trimSpaces . |
<jspFileExtensions> |
String |
- |
Deprecated. Use the includes filter instead.Default value is: jsp,jspx .User property is: jspc.jspFileExtensions . |
<outputDirectory> |
String |
- |
Target directory for the compiled JSP classes. Default value is: ${project.build.outputDirectory} .User property is: jspc.outputDirectory . |
<printCompilationReport> |
boolean |
- |
Prints a compilation report by listing all the packages and
dependencies that were used during processing the JSPs. Default value is: false .User property is: jspc.printCompilationReport . |
<resourceDirectories> |
File[] |
- |
List of alternative resource directories used during compiling. |
<servletPackage> |
String |
- |
When defined, this will set the value for the
Constants.JSP_PACKAGE_NAME_PROPERTY_NAME system
property of the Jasper compiler, which defines the prefix package
under which compiled JSPs will be generated.User property is: jspc.servletPackage . |
<showSuccess> |
boolean |
- |
(no description) Default value is: false .User property is: jspc.showSuccess . |
<sourceDirectory> |
File |
- |
Location of the JSP source file. Default value is: ${project.build.scriptSourceDirectory} .User property is: jspc.sourceDirectory . |
java.lang.String
No
jspc.compilerSourceVM
1.8
java.lang.String
No
jspc.compilerTargetVM
1.8
java.lang.String[]
No
boolean
No
jspc.failOnError
true
org.apache.sling.maven.jspc.JspcMojo$FeatureDependency
No
${project.build.outputDirectory
}.
The compilation report has the following format:
{ "packageProviders": [ { "package": "<a Java package name>", "providers": [ "<Maven Artifact ID>" ] } ], "jspDependencies": [ { "jsp": "src/main/scripts/<a script>.jsp", "dependencies": [ "<jar file name>:<path to JSP>", "src/main/scripts/<path to file in local project>.jsp" ] } ], "unusedDependencies": [ "<Maven Artifact ID>" ] }
boolean
2.3.0
No
jspc.generateCompilationReport
false
"**/*.jsp"
java.lang.String[]
No
boolean
No
jspc.jasper.classdebuginfo
true
boolean
No
jspc.jasper.enablePooling
true
boolean
No
jspc.jasper.genStringAsCharArray
false
java.lang.String
No
jspc.jasper.ieClassId
clsid:8AD9C840-044E-11D1-B3E9-00805F499D93
boolean
No
jspc.jasper.keepgenerated
true
boolean
No
jspc.jasper.mappedfile
true
boolean
No
jspc.jasper.suppressSmap
false
boolean
No
jspc.jasper.trimSpaces
false
includes
filter instead.java.lang.String
No
jspc.jspFileExtensions
jsp,jspx
java.lang.String
No
jspc.outputDirectory
${project.build.outputDirectory}
boolean
No
jspc.printCompilationReport
false
java.io.File[]
No
Constants.JSP_PACKAGE_NAME_PROPERTY_NAME
system
property of the Jasper compiler, which defines the prefix package
under which compiled JSPs will be generated.java.lang.String
No
jspc.servletPackage
boolean
No
jspc.showSuccess
false
java.io.File
No
jspc.sourceDirectory
${project.build.scriptSourceDirectory}