@Mojo(name="scan",
requiresDependencyCollection=TEST,
instantiationStrategy=SINGLETON)
public class ScanMavenMojo
extends org.apache.maven.plugin.AbstractMojo
Upon completion, a list of found vulnerable components will be reported on the console and, if upload is true, will be uploaded to the SRC:CLR platform.
| Modifier and Type | Field and Description |
|---|---|
protected String |
apiToken
The apiToken property is used to provide your personal token to the SRC:CLR platform for authentication.
|
protected URI |
apiURL
The URL you are using for the SRC:CLR api.
|
org.apache.maven.settings.Settings |
settings
The settings, from some settings.xml file.
|
| Constructor and Description |
|---|
ScanMavenMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
The top-level plugin entry point.
|
protected File |
getPathToTop() |
@Parameter(defaultValue="${settings}",
readonly=true,
required=true)
public org.apache.maven.settings.Settings settings
@Parameter(property="apiURL") protected URI apiURL
You shouldn't need to use this unless directed to by SRC:CLR support.
@Parameter(property="apiToken") protected String apiToken
The scan will not finish successfully if this is not provided or if it is incorrect.
protected File getPathToTop()
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException - If an unexpected failure occursorg.apache.maven.plugin.MojoFailureException - On user error or the discovery of a vulnerability of confidence level at or above the
failureThresholdCopyright © 2018. All rights reserved.