Full name:
org.apache.sling:jspc-maven-plugin:2.3.0:jspc
Description:
Attributes:
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. |
<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. |
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>" ] }