@Mojo(name="rpm",
defaultPhase=PACKAGE,
requiresDependencyResolution=RUNTIME,
threadSafe=true)
public class RPMMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.maven.project.MavenProject |
project |
| Constructor and Description |
|---|
RPMMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterExecution()
If the
packaging is rpm, sets the rpm as the
primary artifact. |
void |
execute() |
Date |
getBuildTimestamp() |
String |
getRelease() |
protected File |
getRPMFile()
Returns the generated rpm
File. |
String |
getVersion() |
getLog, getPluginContext, setLog, setPluginContext@Parameter(defaultValue="${project}",
readonly=true,
required=true)
protected org.apache.maven.project.MavenProject project
protected void afterExecution()
packaging is rpm, sets the rpm as the
primary artifact.public final void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
execute in interface org.apache.maven.plugin.Mojoorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected File getRPMFile()
File.public Date getBuildTimestamp()
public final String getVersion()
Copyright © 2005–2014 Codehaus. All rights reserved.