Package org.codehaus.mojo.rpm
Class AttachedRPMMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.codehaus.mojo.rpm.AbstractRPMMojo
-
- org.codehaus.mojo.rpm.AttachedRPMMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="attached-rpm", defaultPhase=PACKAGE, requiresDependencyResolution=RUNTIME, threadSafe=true) public class AttachedRPMMojo extends AbstractRPMMojo
Construct the RPM file and attaches it as a secondary artifact.- Since:
- 2.0-beta-2
- Author:
- Brett Okken, Cerner Corp.
-
-
Field Summary
-
Fields inherited from class org.codehaus.mojo.rpm.AbstractRPMMojo
project
-
-
Constructor Summary
Constructors Constructor Description AttachedRPMMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
afterExecution()
Attach the rpm as a secondary artifact.protected String
getClassifier()
Returns the classifier for the secondary artifact.-
Methods inherited from class org.codehaus.mojo.rpm.AbstractRPMMojo
execute, getBuildTimestamp, getRelease, getRPMFile, getVersion
-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
-
-
-
Method Detail
-
afterExecution
protected void afterExecution()
Attach the rpm as a secondary artifact.- Overrides:
afterExecution
in classAbstractRPMMojo
- See Also:
MavenProjectHelper.attachArtifact(org.apache.maven.project.MavenProject, String, String, java.io.File)
-
getClassifier
protected String getClassifier()
Returns the classifier for the secondary artifact.- Returns:
- The classifier.
-
-