Class PreparePackageMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="prepare-package",
          defaultPhase=PROCESS_SOURCES,
          requiresDependencyResolution=TEST,
          threadSafe=true)
    public class PreparePackageMojo
    extends AbstractSlingStartMojo
    Prepare the packaging of the Sling quickstart artifact (either JAR or WAR).
    • Field Detail

      • createWebapp

        @Parameter(defaultValue="false")
        protected boolean createWebapp
        If set to true creates a WAR artifact in addition to the standalone JAR from the model.
      • mojoExecution

        @Parameter(defaultValue="${mojoExecution}",
                   readonly=true,
                   required=true)
        protected org.apache.maven.plugin.MojoExecution mojoExecution
    • Constructor Detail

      • PreparePackageMojo

        public PreparePackageMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException