Package org.spdx.maven
Class AggregateSpdxMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.spdx.maven.CreateSpdxMojo
org.spdx.maven.AggregateSpdxMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="aggregateSPDX",
defaultPhase=VERIFY,
requiresOnline=true,
threadSafe=true)
public class AggregateSpdxMojo
extends CreateSpdxMojo
-
Field Summary
Fields inherited from class org.spdx.maven.CreateSpdxMojo
createExternalRefs, CREATOR_TOOL_MAVEN_PLUGIN, dependencyGraphBuilder, generatePurls, INCLUDE_ALL, includeTransitiveDependencies, JSON_OUTPUT_FORMAT, mavenProjectBuilder, RDF_OUTPUT_FORMAT, session, SPDX_JSON_ARTIFACT_TYPE, SPDX_RDF_ARTIFACT_TYPE, useArtifactIDFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuildSpdxDependencyInformation(AbstractDocumentBuilder builder, OutputFormat outputFormatEnum) Collect dependency information from Maven dependencies and adds it to the builder SPDX documentMethods inherited from class org.spdx.maven.CreateSpdxMojo
executeMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
AggregateSpdxMojo
public AggregateSpdxMojo()
-
-
Method Details
-
buildSpdxDependencyInformation
protected void buildSpdxDependencyInformation(AbstractDocumentBuilder builder, OutputFormat outputFormatEnum) throws org.apache.maven.shared.dependency.graph.DependencyGraphBuilderException, LicenseMapperException, org.spdx.core.InvalidSPDXAnalysisException Description copied from class:CreateSpdxMojoCollect dependency information from Maven dependencies and adds it to the builder SPDX document- Overrides:
buildSpdxDependencyInformationin classCreateSpdxMojo- Parameters:
builder- SPDX document builder- Throws:
LicenseMapperException- on errors related to mapping Maven licenses to SPDX licensesorg.spdx.core.InvalidSPDXAnalysisException- on SPDX parsing errorsorg.apache.maven.shared.dependency.graph.DependencyGraphBuilderException
-