@Mojo(name="makeAggregateBom",
defaultPhase=PACKAGE,
threadSafe=true,
aggregator=true,
requiresOnline=true,
requiresDependencyCollection=TEST,
requiresDependencyResolution=TEST)
public class CycloneDxAggregateMojo
extends CycloneDxMojo
| Modifier and Type | Field and Description |
|---|---|
protected String[] |
excludeArtifactId
Excluded reactor project (aka module) ArtifactIds from aggregate BOM.
|
protected String[] |
excludeGroupId
Excluded reactor project (aka module) GroupIds from aggregate BOM.
|
protected Boolean |
excludeTestProject
Should reactor project (aka module) artifactId with the word "test" be excluded from aggregate BOM?
|
dependencyAnalyzerMESSAGE_CREATING_BOM, MESSAGE_RESOLVING_AGGREGATED_DEPS, MESSAGE_RESOLVING_DEPS, MESSAGE_VALIDATING_BOM, MESSAGE_VALIDATION_FAILURE, MESSAGE_WRITING_BOM| Constructor and Description |
|---|
CycloneDxAggregateMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected 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 void |
logAdditionalParameters() |
protected boolean |
shouldExclude(org.apache.maven.project.MavenProject mavenProject) |
createProjectDependencyAnalyzer, getComponentScopebuildDependencyGraph, convert, execute, generatePackageUrl, generateVersionlessPackageUrl, getProject, logParameters, schemaVersion@Parameter(property="excludeArtifactId",
required=false)
protected String[] excludeArtifactId
@Parameter(property="excludeGroupId",
required=false)
protected String[] excludeGroupId
@Parameter(property="excludeTestProject",
defaultValue="false",
required=false)
protected Boolean excludeTestProject
protected boolean shouldExclude(org.apache.maven.project.MavenProject mavenProject)
protected void logAdditionalParameters()
logAdditionalParameters in class BaseCycloneDxMojoprotected String analyze(Set<org.cyclonedx.model.Component> components, Set<org.cyclonedx.model.Dependency> dependencies) throws org.apache.maven.plugin.MojoExecutionException
BaseCycloneDxMojoanalyze in class CycloneDxMojocomponents - the components set to filldependencies - the dependencies set to fillnull to not save result.org.apache.maven.plugin.MojoExecutionException - something weird happened...Copyright © 2017–2023 OWASP Foundation. All rights reserved.