@Mojo(name="generate-bom",
defaultPhase=VALIDATE,
threadSafe=true)
public class BomGeneratorMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.maven.project.MavenProject |
project
The maven project.
|
protected File |
sourcePom
The source pom template file.
|
protected File |
startersDir |
protected File |
targetPom
The pom file.
|
| Constructor and Description |
|---|
BomGeneratorMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
@Parameter(defaultValue="${project}",
readonly=true)
protected org.apache.maven.project.MavenProject project
@Parameter(defaultValue="${basedir}/pom.xml")
protected File sourcePom
@Parameter(defaultValue="${project.build.directory}/${project.name}-pom.xml")
protected File targetPom
@Parameter(defaultValue="${basedir}/../../components-starter")
protected File startersDir
Apache Camel