@Mojo(name="export",
aggregator=true,
requiresProject=true,
requiresDependencyResolution=COMPILE_PLUS_RUNTIME)
public class ExportVersionsMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected String |
configYaml |
protected File |
destFile |
protected org.apache.maven.project.MavenProject |
project |
| Constructor and Description |
|---|
ExportVersionsMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
addArtifact(Map<MavenArtifactKey,MavenArtifactVersionChange> exportVersions,
MavenArtifactKey artifactKey,
String version,
String scope) |
void |
execute() |
@Parameter(defaultValue="${project}",
readonly=true)
protected org.apache.maven.project.MavenProject project
@Parameter(property="updateBotYaml") protected String configYaml
@Parameter(property="destFile",
defaultValue="${basedir}/target/updatebot-versions.yml")
protected File destFile
protected static void addArtifact(Map<MavenArtifactKey,MavenArtifactVersionChange> exportVersions, MavenArtifactKey artifactKey, String version, String scope)
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionCopyright © 2076–2017 Red Hat. All rights reserved.