com.sourceclear.plugins.Lifecycle Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of srcclr-maven-plugin Show documentation
Show all versions of srcclr-maven-plugin Show documentation
The SRC:CLR Maven Plugin analyzes the dependencies of your project, both immediate and transitive, to
see if you are including any known security vulnerabilities through third-party packages in your
project.
/*
* © Copyright - SourceClear Inc
*/
package com.sourceclear.plugins;
import com.sourceclear.util.config.EnvironmentProvider;
import com.srcclr.sdk.LibraryGraphContainer;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
/**
*
*/
public interface Lifecycle {
/**
* Handles some configuration issues. Essentially, looks to see if we have certain maven parameters. If the
* parameters aren't present, we dig around in some SRC:CLR config files and environment variables to attempt to fill
* in those parameters.
*
* @throws MojoFailureException when no apiToken is specified, when the SRC:CLR platform URI is malformed, etc.
*/
void configure(EnvironmentProvider environmentProvider) throws MojoFailureException;
void execute(LibraryGraphContainer dependencyTree) throws MojoExecutionException, MojoFailureException;
}