|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.jomc.mojo.AbstractAttachMojo
public abstract class AbstractAttachMojo
Base class for attaching artifacts to a project.
Field Summary |
---|
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
AbstractAttachMojo()
Creates a new AbstractAttachMojo instance. |
Method Summary | |
---|---|
void |
execute()
|
protected abstract String |
getArtifactClassifier()
Gets the classifier of the artifact to attach. |
protected abstract File |
getArtifactFile()
Gets the file of the artifact to attach. |
protected abstract String |
getArtifactType()
Gets the type of the artifact to attach. |
protected abstract String |
getExecutionStrategy()
Gets the execution strategy of the instance. |
protected MavenProject |
getMavenProject()
Gets the Maven project of the instance. |
protected MavenProjectHelper |
getMavenProjectHelper()
Gets the Maven project helper of the instance. |
protected MavenSession |
getMavenSession()
Gets the Maven session of the instance. |
protected File |
getSessionDirectory()
Gets the directory holding the session related files of the project. |
protected boolean |
isVerbose()
Gets a flag indicating verbose output is enabled. |
protected void |
setVerbose(boolean value)
Sets the flag indicating verbose output is enabled. |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
---|
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractAttachMojo()
AbstractAttachMojo
instance.
Method Detail |
---|
protected MavenProject getMavenProject() throws MojoExecutionException
MojoExecutionException
- if getting the Maven project of the instance fails.protected MavenSession getMavenSession() throws MojoExecutionException
MojoExecutionException
- if getting the Maven session of the instance fails.protected MavenProjectHelper getMavenProjectHelper() throws MojoExecutionException
MojoExecutionException
- if getting the Maven project helper of the instance fails.protected File getSessionDirectory() throws MojoExecutionException
MojoExecutionException
- if getting the directory fails.protected final boolean isVerbose() throws MojoExecutionException
true
, if verbose output is enabled; false
, if information messages are suppressed.
MojoExecutionException
- if getting the flag fails.protected final void setVerbose(boolean value) throws MojoExecutionException
value
- true
, to enable verbose output; false
, to suppress information messages.
MojoExecutionException
- if setting the flag fails.protected abstract File getArtifactFile()
protected abstract String getArtifactClassifier()
protected abstract String getArtifactType()
protected abstract String getExecutionStrategy()
public final void execute() throws MojoExecutionException, MojoFailureException
MojoExecutionException
MojoFailureException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2005-2012 The JOMC Project. All Rights Reserved. |