Generate the scan results as part of the site.
Mojo Attributes:
sitepackage prior to executing itself.scan| Name | Type | Description |
|---|---|---|
| applicationFile | String |
The location of the application file (.paf) to scan. Default value is ${basedir}/${project.artifactId}.paf. |
| assessmentName | String |
A name to help identify the assessment. |
| assessmentOutput | String |
A filename to which to save the assessment. If filename is not specified, Ounce/Maven generates a name based on the application name and timestamp and saves it to the applicationŐs working directory. |
| caller | String |
A short string to help identify the corresponding entries in the ounceauto log file. |
| coreHint | String |
This hint provides a way to switch the core implementation. Consult Ounce support for details, most users should
leave this set to the default. Use -Dounce.core=console to have have the output displayed instead of written to
the file for debugging purposes. Default value is ouncexml. |
| existingAssessmentFile | String |
Specify the name of an existing assessment for which to generate a report. If not specified, Ounce/Maven scans the application and generates the report from that assessment. |
| includeSrcAfter | int |
Number of lines of source code to include in the report after each finding. |
| includeSrcBefore | int |
Number of lines of source code to include in the report before each finding. |
| installDir | String |
The location of the Ounce client installation directory if the Ounce client is not on the path. |
| pathVariableMap | Map |
Map of Ounce variable names and paths. pathVariableMap variables are automatically registered with Ounce by the Ounce/Maven plugin if the Ounce Automation Server is installed. |
| publish | boolean |
Automatically publish the assessment following the completion of the scan. Default value is false. |
| reportOutputPath | String |
The path to which to write the report specified in reportType. Required with reportType. |
| reportOutputType | String |
The output to generate for the report specified in reportType. Required with reportType. Output type may be html, zip, pdf-summary, pdf-detailed, pdf-comprehensive, or pdf-annotated. |
| reportType | String |
Generates an Ounce report of the specified type, including findings reports, SmartAudit Reports, and, if
available, custom reports. Ounce/Maven generates a report for this assessment after the scan completes. The following report types are included: Findings, Findings By CWE, Findings By API, Findings By Classification, Findings By File, Findings By Type, Findings By Bundle, OWASP Top Ten, PCI Data Security Standard, Ounce Software Security Profile, or OWASP Top Ten 2007 If you specify reportType, then reportOutputType and reportOutputPath are required. |
| siteRenderer | Renderer |
For internal use only. |
| skipPoms | boolean |
If pom packaging projects should be skipped. Typically these will not have source code and should be excluded.
This is true by default because typically the application or projects will be created at a pom level and the poms
have no source to be analyzed Only set this if you have source in your "pom" packaging projects that needs to be
scanned. Default value is true. |
| waitForScan | boolean |
Forces the goal to wait until the scan finishes, thus blocking the Maven build. This is useful if the scan is
being performed from the report mojo as part of integration with the site target and the site is getting
deployed. Default value is false. |
java.lang.StringNo${ounce.applicationFile}${basedir}/${project.artifactId}.pafjava.lang.StringNo${project.name}-${project.version}java.lang.StringNo${ounce.assessmentOutput}java.lang.StringNo${ounce.caller}java.lang.StringNo${ounce.core}ouncexmljava.lang.StringNo${ounce.existingAssessmentFile}intNo${ounce.includeSrcAfter}intNo${ounce.includeSrcBefore}java.lang.StringNo${ounce.installDir}java.util.MapNobooleanNo${ounce.publish}falsejava.lang.StringNo${ounce.reportOutputPath}java.lang.StringNo${ounce.reportOutputType}java.lang.StringNo${ounce.reportType}org.apache.maven.doxia.siterenderer.RendererNobooleanNo${ounce.skipPoms}truebooleanNo${ounce.wait}false