Class PackageSourceMojo

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

    @Mojo(name="package-source",
          defaultPhase=PACKAGE)
    public class PackageSourceMojo
    extends org.apache.maven.plugin.AbstractMojo
    This goal creates a source zip file of the native build module and attaches it to the build so that it can get deployed.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager  
      private java.io.File packageDirectory
      The directory where the generated native files are located..
      protected org.apache.maven.project.MavenProject project
      The maven project.
      private org.apache.maven.project.MavenProjectHelper projectHelper  
      private boolean skipAutogen
      Should we skip executing the autogen.sh file.
      private java.lang.String sourceClassifier
      The classifier of the package archive that will be created.
      • 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(defaultValue="${project}",
                   readonly=true)
        protected org.apache.maven.project.MavenProject project
        The maven project.
      • archiverManager

        @Component
        private org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager
      • projectHelper

        @Component
        private org.apache.maven.project.MavenProjectHelper projectHelper
      • packageDirectory

        @Parameter(defaultValue="${project.build.directory}/generated-sources/hawtjni/native-package")
        private java.io.File packageDirectory
        The directory where the generated native files are located..
      • sourceClassifier

        @Parameter(defaultValue="native-src")
        private java.lang.String sourceClassifier
        The classifier of the package archive that will be created.
      • skipAutogen

        @Parameter(defaultValue="${skip-autogen}")
        private boolean skipAutogen
        Should we skip executing the autogen.sh file.
    • Constructor Detail

      • PackageSourceMojo

        public PackageSourceMojo()
    • Method Detail

      • execute

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