Class PackageRmiMojo

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

    public class PackageRmiMojo
    extends org.apache.maven.plugin.AbstractMojo
    Creates a jar containing the rmic generated classes.
    Version:
    $Id: PackageRmiMojo.java 8084 2008-11-13 16:48:02Z pgier $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String classifier
      Classifier to append to the jar.
      private java.lang.String[] excludes
      The file patterns to exclude from the jar.
      private java.lang.String finalName
      The base name of the generated jar.
      private java.lang.String[] includes
      The file patterns to include in the jar.
      private java.io.File outputDirectory
      This directory contains the output of rmic (where the Stub classes are located).
      private org.apache.maven.project.MavenProject project  
      private org.apache.maven.project.MavenProjectHelper projectHelper
      The maven project helper.
      private java.io.File target
      The directory to which the generated jar should be written.
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Constructor Summary

      Constructors 
      Constructor Description
      PackageRmiMojo()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()
      Execute the plugin
      • 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

      • target

        private java.io.File target
        The directory to which the generated jar should be written.
      • finalName

        private java.lang.String finalName
        The base name of the generated jar. This name does not include the classifier or the extension.
      • project

        private org.apache.maven.project.MavenProject project
      • classifier

        private java.lang.String classifier
        Classifier to append to the jar.
      • outputDirectory

        private java.io.File outputDirectory
        This directory contains the output of rmic (where the Stub classes are located). This is not the directory where the jar file will be written.
      • includes

        private java.lang.String[] includes
        The file patterns to include in the jar. By default, all classes ending with _Stub.class will be included.
      • excludes

        private java.lang.String[] excludes
        The file patterns to exclude from the jar.
      • projectHelper

        private org.apache.maven.project.MavenProjectHelper projectHelper
        The maven project helper.
    • Constructor Detail

      • PackageRmiMojo

        public PackageRmiMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        Execute the plugin
        Throws:
        org.apache.maven.plugin.MojoExecutionException - If there is a problem executing the plugin.