public abstract class AbstractAttachMojo extends AbstractMojo
Constructor and Description |
---|
AbstractAttachMojo()
Creates a new
AbstractAttachMojo instance. |
Modifier and Type | Method and Description |
---|---|
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.
|
getLog, getPluginContext, setLog, setPluginContext
public AbstractAttachMojo()
AbstractAttachMojo
instance.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
Copyright © 2005-2013 The JOMC Project. All Rights Reserved.