public abstract class BaseCycloneDxMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected static String |
MESSAGE_CREATING_BOM |
protected static String |
MESSAGE_RESOLVING_AGGREGATED_DEPS |
protected static String |
MESSAGE_RESOLVING_DEPS
Various messages sent to console.
|
protected static String |
MESSAGE_VALIDATING_BOM |
protected static String |
MESSAGE_VALIDATION_FAILURE |
protected static String |
MESSAGE_WRITING_BOM |
| Constructor and Description |
|---|
BaseCycloneDxMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
analyze(Set<org.cyclonedx.model.Component> components,
Set<org.cyclonedx.model.Dependency> dependencies)
Analyze the project dependencies to fill the BOM components list and their dependencies.
|
protected Set<org.cyclonedx.model.Dependency> |
buildDependencyGraph(org.apache.maven.project.MavenProject mavenProject) |
protected org.cyclonedx.model.Component |
convert(org.apache.maven.artifact.Artifact artifact) |
void |
execute() |
protected String |
generatePackageUrl(org.apache.maven.artifact.Artifact artifact) |
protected String |
generateVersionlessPackageUrl(org.apache.maven.artifact.Artifact artifact) |
protected org.apache.maven.project.MavenProject |
getProject()
Returns a reference to the current project.
|
protected void |
logAdditionalParameters() |
protected void |
logParameters() |
protected org.cyclonedx.CycloneDxSchema.Version |
schemaVersion()
Resolves the CycloneDX schema the mojo has been requested to use.
|
protected static final String MESSAGE_RESOLVING_DEPS
protected static final String MESSAGE_RESOLVING_AGGREGATED_DEPS
protected static final String MESSAGE_CREATING_BOM
protected static final String MESSAGE_WRITING_BOM
protected static final String MESSAGE_VALIDATING_BOM
protected static final String MESSAGE_VALIDATION_FAILURE
protected org.apache.maven.project.MavenProject getProject()
protected String generatePackageUrl(org.apache.maven.artifact.Artifact artifact)
protected String generateVersionlessPackageUrl(org.apache.maven.artifact.Artifact artifact)
protected org.cyclonedx.model.Component convert(org.apache.maven.artifact.Artifact artifact)
protected abstract String analyze(Set<org.cyclonedx.model.Component> components, Set<org.cyclonedx.model.Dependency> dependencies) throws org.apache.maven.plugin.MojoExecutionException
components - the components set to filldependencies - the dependencies set to fillnull to not save result.org.apache.maven.plugin.MojoExecutionException - something weird happened...public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected org.cyclonedx.CycloneDxSchema.Version schemaVersion()
protected Set<org.cyclonedx.model.Dependency> buildDependencyGraph(org.apache.maven.project.MavenProject mavenProject) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void logAdditionalParameters()
protected void logParameters()
Copyright © 2017–2023 OWASP Foundation. All rights reserved.