@Mojo(name="attached-rpm",
defaultPhase=PACKAGE,
requiresDependencyResolution=RUNTIME,
threadSafe=true)
public class AttachedRPMMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.maven.project.MavenProject |
project |
| Constructor and Description |
|---|
AttachedRPMMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterExecution()
Attach the rpm as a secondary artifact.
|
void |
execute() |
Date |
getBuildTimestamp() |
protected String |
getClassifier()
Returns the classifier for the secondary artifact.
|
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()
MavenProjectHelper.attachArtifact(org.apache.maven.project.MavenProject, String, String, java.io.File)protected String getClassifier()
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.