Class HK2GenerateMojo

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

    public class HK2GenerateMojo
    extends org.apache.maven.plugin.AbstractMojo
    Generates a consolidated OSGI bundle with a consolidated HK2 header
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static int BUFFER_SIZE  
      private static java.lang.String DEFAULT  
      private static java.lang.String HK2_LOCATOR  
      private static java.lang.String JAR_ENTRY  
      protected java.io.File manifestLocation
      Directory where the manifest will be written
      private static java.lang.String META_INF  
      protected org.apache.maven.project.MavenProject project
      The maven project.
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Constructor Summary

      Constructors 
      Constructor Description
      HK2GenerateMojo()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void catJarEntry​(java.util.jar.JarFile jf, java.util.jar.JarEntry e, java.io.OutputStream catStream)  
      void execute()  
      private java.io.OutputStream getCatOutputStream()  
      • 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

      • manifestLocation

        protected java.io.File manifestLocation
        Directory where the manifest will be written
      • project

        protected org.apache.maven.project.MavenProject project
        The maven project.
    • Constructor Detail

      • HK2GenerateMojo

        public HK2GenerateMojo()
    • Method Detail

      • execute

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

        private void catJarEntry​(java.util.jar.JarFile jf,
                                 java.util.jar.JarEntry e,
                                 java.io.OutputStream catStream)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • getCatOutputStream

        private java.io.OutputStream getCatOutputStream()
                                                 throws org.apache.maven.plugin.MojoExecutionException,
                                                        java.io.IOException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        java.io.IOException