public abstract class AbstractMainMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected Config |
config |
protected org.apache.maven.project.MavenProject |
project |
| Constructor and Description |
|---|
AbstractMainMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
protected List<org.apache.maven.artifact.Artifact> |
getAllDependencies()
Gets all project dependencies, direct and transitives, but exclude those matching ignored
scopes.
|
protected List<org.apache.maven.model.Dependency> |
getDirectDependencies()
Gets the project direct dependencies.
|
protected void |
loadConfig()
Loads configuration.
|
protected void |
printHeader()
Prints a header.
|
protected Config config
@Parameter(defaultValue="${project}",
readonly=true,
required=true)
protected org.apache.maven.project.MavenProject project
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void loadConfig()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException - if config can't be loadedprotected void printHeader()
protected List<org.apache.maven.artifact.Artifact> getAllDependencies()
protected List<org.apache.maven.model.Dependency> getDirectDependencies()
Copyright © 2023. All rights reserved.