public abstract class AbstractBuildinfoMojo extends AbstractMojo
.buildinfo
files.Modifier and Type | Field and Description |
---|---|
protected ArtifactHandlerManager |
artifactHandlerManager |
protected File |
buildinfoFile
Location of the generated buildinfo file.
|
protected MavenProject |
project
The Maven project.
|
protected List<MavenProject> |
reactorProjects
The reactor projects.
|
Constructor and Description |
---|
AbstractBuildinfoMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
copyAggregateToRoot(File aggregate) |
void |
execute() |
protected Map<Artifact,String> |
generateBuildinfo(boolean mono)
Generate buildinfo file.
|
protected MavenProject |
getExecutionRoot() |
protected void |
skip(MavenProject last) |
getLog, getPluginContext, setLog, setPluginContext
@Parameter(defaultValue="${project}", readonly=true) protected MavenProject project
@Parameter(defaultValue="${reactorProjects}", required=true, readonly=true) protected List<MavenProject> reactorProjects
@Parameter(defaultValue="${project.build.directory}/${project.artifactId}-${project.version}.buildinfo", required=true, readonly=true) protected File buildinfoFile
@Component protected ArtifactHandlerManager artifactHandlerManager
public void execute() throws MojoExecutionException
MojoExecutionException
protected void skip(MavenProject last) throws MojoExecutionException
MojoExecutionException
protected void copyAggregateToRoot(File aggregate) throws MojoExecutionException
MojoExecutionException
protected Map<Artifact,String> generateBuildinfo(boolean mono) throws MojoExecutionException
mono
- is it a mono-module build?outputs.[#module.].#artifact
)MojoExecutionException
protected MavenProject getExecutionRoot()
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.