Class SingleAssemblyMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.assembly.mojos.AbstractAssemblyMojo
org.apache.maven.plugins.assembly.mojos.SingleAssemblyMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, AssemblerConfigurationSource

@Mojo(name="single", requiresDependencyResolution=TEST, threadSafe=true) public class SingleAssemblyMojo extends AbstractAssemblyMojo
Assemble an application bundle or distribution from an assembly descriptor. This goal is suitable either for binding to the lifecycle or calling directly from the command line (provided all required files are available before the build starts, or are produced by another goal specified before this one on the command line).
Note that the parameters descriptors, descriptorRefs, and descriptorSourceDirectory are disjoint, i.e., they are not combined during descriptor location calculation.
Author:
John Casey, Brett Porter
  • Constructor Details

    • SingleAssemblyMojo

      public SingleAssemblyMojo()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Description copied from class: AbstractAssemblyMojo
      Create the binary distribution.
      Specified by:
      execute in interface org.apache.maven.plugin.Mojo
      Overrides:
      execute in class AbstractAssemblyMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException
    • getProject

      public org.apache.maven.project.MavenProject getProject()
      Returns:
      The Maven Project.