Skip to content

Commit

Permalink
cleanup unused code
Browse files Browse the repository at this point in the history
Signed-off-by: Hervé Boutemy <hboutemy@apache.org>
  • Loading branch information
hboutemy committed Jan 16, 2024
1 parent d0e6cb5 commit 051be8e
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/main/java/org/cyclonedx/maven/BaseCycloneDxMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

import org.apache.commons.io.FileUtils;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.execution.MavenSession;
import org.apache.maven.model.Plugin;
import org.apache.maven.model.PluginExecution;
import org.apache.maven.plugin.AbstractMojo;
Expand All @@ -45,7 +44,6 @@
import org.cyclonedx.parsers.JsonParser;
import org.cyclonedx.parsers.Parser;
import org.cyclonedx.parsers.XmlParser;
import org.eclipse.aether.RepositorySystem;

import javax.xml.parsers.ParserConfigurationException;
import java.io.File;
Expand All @@ -61,16 +59,15 @@

public abstract class BaseCycloneDxMojo extends AbstractMojo {

@Parameter(property = "session", readonly = true, required = true)
private MavenSession session;

@Parameter(property = "project", readonly = true, required = true)
private MavenProject project;

/**
* The component type associated to the SBOM metadata. See
* <a href="https://cyclonedx.org/docs/1.4/json/#metadata_component_type">CycloneDX reference</a> for supported
* values.
*
* @since 2.0.0
*/
@Parameter(property = "projectType", defaultValue = "library", required = false)
private String projectType;
Expand Down Expand Up @@ -180,11 +177,10 @@ public abstract class BaseCycloneDxMojo extends AbstractMojo {
@Parameter(property = "detectUnusedForOptionalScope", defaultValue = "false")
protected boolean detectUnusedForOptionalScope;

@org.apache.maven.plugins.annotations.Component(hint = "default")
private RepositorySystem aetherRepositorySystem;

/**
* Skip CycloneDX execution.
*
* @since 1.1.3
*/
@SuppressWarnings("CanBeFinal")
@Parameter(property = "cyclonedx.skip", defaultValue = "false", required = false)
Expand Down

0 comments on commit 051be8e

Please sign in to comment.