Class Pack200NormalizeMojo

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

    @Mojo(name="normalize",
          defaultPhase=PACKAGE)
    public class Pack200NormalizeMojo
    extends org.apache.maven.plugin.AbstractMojo
    Performs pack200 normalization.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.File buildDirectory  
      private java.lang.String finalName
      Name of the normalized JAR.
      private boolean fork
      Whether to fork the pack operation in a separate process.
      private Pack200Archiver pack200  
      private java.util.List<org.apache.maven.artifact.Artifact> pluginArtifacts  
      private org.apache.maven.project.MavenProject project  
      private boolean skip
      Skip execution.
      private java.util.List<java.lang.String> supportedProjectTypes
      Project types which this plugin supports.
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()  
      • Methods inherited from class org.apache.maven.plugin.AbstractMojo

        getLog, getPluginContext, setLog, setPluginContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • project

        @Parameter(property="project",
                   required=true)
        private org.apache.maven.project.MavenProject project
      • buildDirectory

        @Parameter(property="project.build.directory",
                   required=true)
        private java.io.File buildDirectory
      • finalName

        @Parameter(alias="jarName",
                   property="project.build.finalName",
                   required=true)
        private java.lang.String finalName
        Name of the normalized JAR.
      • skip

        @Parameter(defaultValue="false")
        private boolean skip
        Skip execution.
        Since:
        0.20.0
      • fork

        @Parameter(defaultValue="false")
        private boolean fork
        Whether to fork the pack operation in a separate process.
        Since:
        0.23.0
      • supportedProjectTypes

        @Parameter
        private java.util.List<java.lang.String> supportedProjectTypes
        Project types which this plugin supports.
      • pluginArtifacts

        @Parameter(property="plugin.artifacts")
        private java.util.List<org.apache.maven.artifact.Artifact> pluginArtifacts
    • Constructor Detail

      • Pack200NormalizeMojo

        public Pack200NormalizeMojo()
    • 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