@Mojo(name="baseline",
defaultPhase=VERIFY)
public class BaselineMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
private Base |
base |
private boolean |
continueOnError |
private boolean |
failOnMissing |
private boolean |
fullReport |
private boolean |
includeDistributionManagement |
private static org.slf4j.Logger |
logger |
private org.apache.maven.project.MavenProject |
project |
private org.eclipse.aether.RepositorySystemSession |
session |
private boolean |
skip |
private org.eclipse.aether.RepositorySystem |
system |
| Constructor and Description |
|---|
BaselineMojo() |
| Modifier and Type | Method and Description |
|---|---|
private boolean |
checkFailures(org.eclipse.aether.artifact.Artifact artifact,
org.eclipse.aether.resolution.ArtifactResult artifactResult,
Baseline baseline) |
void |
execute() |
private java.util.List<org.eclipse.aether.repository.RemoteRepository> |
getRepositories(org.eclipse.aether.artifact.Artifact artifact) |
private org.eclipse.aether.resolution.ArtifactResult |
locateBaseJar(java.util.List<org.eclipse.aether.repository.RemoteRepository> aetherRepos) |
private void |
searchForBaseVersion(org.eclipse.aether.artifact.Artifact artifact,
java.util.List<org.eclipse.aether.repository.RemoteRepository> aetherRepos) |
private void |
setupBase(org.eclipse.aether.artifact.Artifact artifact) |
private static final org.slf4j.Logger logger
@Parameter(defaultValue="${project}",
readonly=true,
required=true)
private org.apache.maven.project.MavenProject project
@Parameter(defaultValue="${repositorySystemSession}",
readonly=true,
required=true)
private org.eclipse.aether.RepositorySystemSession session
@Parameter(property="bnd.baseline.fail.on.missing",
defaultValue="true")
private boolean failOnMissing
@Parameter(property="bnd.baseline.include.distribution.management",
defaultValue="true")
private boolean includeDistributionManagement
@Parameter(property="bnd.baseline.full.report",
defaultValue="false")
private boolean fullReport
@Parameter(property="bnd.baseline.continue.on.error",
defaultValue="false")
private boolean continueOnError
@Parameter(readonly=true) private Base base
@Parameter(property="bnd.baseline.skip",
defaultValue="false")
private boolean skip
@Component private org.eclipse.aether.RepositorySystem system
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprivate java.util.List<org.eclipse.aether.repository.RemoteRepository> getRepositories(org.eclipse.aether.artifact.Artifact artifact)
private void setupBase(org.eclipse.aether.artifact.Artifact artifact)
private void searchForBaseVersion(org.eclipse.aether.artifact.Artifact artifact,
java.util.List<org.eclipse.aether.repository.RemoteRepository> aetherRepos)
throws org.eclipse.aether.resolution.VersionRangeResolutionException
org.eclipse.aether.resolution.VersionRangeResolutionExceptionprivate org.eclipse.aether.resolution.ArtifactResult locateBaseJar(java.util.List<org.eclipse.aether.repository.RemoteRepository> aetherRepos)
throws org.eclipse.aether.resolution.ArtifactResolutionException
org.eclipse.aether.resolution.ArtifactResolutionExceptionprivate boolean checkFailures(org.eclipse.aether.artifact.Artifact artifact,
org.eclipse.aether.resolution.ArtifactResult artifactResult,
Baseline baseline)
throws java.lang.Exception,
java.io.IOException
java.lang.Exceptionjava.io.IOException