public class AmpMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected File |
ampBuildDirectory
Target folder used to aggregate content then packaged into the AMP
|
protected String |
ampFinalName
Name of the generated AMP and JAR artifacts
|
protected org.apache.maven.archiver.MavenArchiveConfiguration |
archive
The archive configuration to use.
|
protected File |
classesDirectory
(Read Only) Directory containing the classes and resource files that should be packaged into the JAR.
|
protected String |
classifier
Classifier to add to the artifact generated.
|
protected boolean |
includeDependencies
Whether (runtime scoped) JAR dependencies (including transitive) should be added or not to the generated AMP /lib folder.
|
protected File |
outputDirectory
Directory the build produces the AMP file in
|
protected org.apache.maven.project.MavenProject |
project
(Read Only) The Maven project.
|
protected org.apache.maven.project.MavenProjectHelper |
projectHelper |
protected org.apache.maven.execution.MavenSession |
session
(Read Only) The Maven session
|
| Constructor and Description |
|---|
AmpMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected File |
createArchive()
Creates and returns the AMP archive, invoking the AmpArchiver
|
void |
execute() |
protected void |
gatherDependencies()
Copies all runtime dependencies to AMP lib.
|
protected static File |
getFile(File basedir,
String finalName,
String classifier,
String extension)
Builds a File object pointing to the target AMP package; the pointer to the File is created taking into
account the (optional) artifact classifier defined
|
protected String ampFinalName
protected File ampBuildDirectory
protected String classifier
protected boolean includeDependencies
protected File outputDirectory
protected File classesDirectory
protected org.apache.maven.project.MavenProject project
protected org.apache.maven.execution.MavenSession session
protected org.apache.maven.archiver.MavenArchiveConfiguration archive
protected org.apache.maven.project.MavenProjectHelper projectHelper
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected File createArchive() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected static File getFile(File basedir, String finalName, String classifier, String extension)
basedir - the Base Directory of the currently built projectfinalName - the Final Name of the artifact being builtclassifier - the optional classifier of the artifact being builtprotected void gatherDependencies()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionCopyright © 2013. All Rights Reserved.