Class PackagePluginMojo

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

    @Mojo(name="package-plugin")
    public class PackagePluginMojo
    extends AbstractTychoPackagingMojo
    Creates a jar-based plugin and attaches it as an artifact
    • Field Detail

      • buildDirectory

        @Parameter(property="project.build.directory",
                   required=true)
        protected File buildDirectory
        The output directory of the jar file By default this is the Maven "target/" directory.
      • finalName

        @Parameter(property="project.build.finalName",
                   alias="jarName",
                   required=true)
        protected String finalName
        Name of the generated JAR.
    • Constructor Detail

      • PackagePluginMojo

        public PackagePluginMojo()
    • Method Detail

      • execute

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