Fork me on GitHub

rmic:rmic

Full name:

org.codehaus.mojo:rmic-maven-plugin:1.3:rmic

Description:

Compiles rmi stubs and skeleton classes from a remote implementation class.

Attributes:

  • Requires a Maven project to be executed.
  • Requires dependency resolution of artifacts in scope: compile.
  • Binds by default to the lifecycle phase: process-classes.

Optional Parameters

Name Type Since Description
classesDirectory File - Directory tree where the compiled Remote classes are located.
Default value is: ${project.build.outputDirectory}.
compiler String - The id of the rmi compiler to use.
Default value is: sun.
excludes Set - A list of exclusions when searching for classes to compile.
idl boolean - Create IDL.
Default value is: false.
iiop boolean - Create stubs for IIOP.
Default value is: false.
includes Set - A list of inclusions when searching for classes to compile.
keep boolean - Do not delete intermediate generated source files.
Default value is: false.
noLocalStubs boolean - Do not create stubs optimized for same process.
Default value is: false.
noValueMethods boolean - Do not generate methods for valuetypes.
Default value is: false.
nowarn boolean - Turn off rmic warnings.
Default value is: false.
outputDirectory File - Specifies where to place rmic generated class files. If the generated files need to be included in the main project artifact, this parameter can be set to ${project.build.outputDirectory}.
Default value is: ${project.build.directory}/rmi-classes.
poa boolean - Enable poa generation.
Default value is: false.
sources List - A List of Source configurations to compile.
staleMillis int - Time in milliseconds between automatic recompilations. A value of 0 means that up to date rmic output classes will not be recompiled until the source classes change.
Default value is: 0.
verbose boolean - Enable verbose output.
Default value is: false.
version String - The version of the rmi protocol to which the stubs should be compiled. Valid values include 1.1, 1.2, compat. See the rmic documentation for more information. If nothing is specified the underlying rmi compiler will choose the default value. For example, in sun jdk 1.5 the default is 1.2.

Parameter Details

classesDirectory:

Directory tree where the compiled Remote classes are located.
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.outputDirectory}

compiler:

The id of the rmi compiler to use.
  • Type: java.lang.String
  • Required: No
  • Default: sun

excludes:

A list of exclusions when searching for classes to compile.
  • Type: java.util.Set
  • Required: No

idl:

Create IDL.
  • Type: boolean
  • Required: No
  • Default: false

iiop:

Create stubs for IIOP.
  • Type: boolean
  • Required: No
  • Default: false

includes:

A list of inclusions when searching for classes to compile.
  • Type: java.util.Set
  • Required: No

keep:

Do not delete intermediate generated source files.
  • Type: boolean
  • Required: No
  • Default: false

noLocalStubs:

Do not create stubs optimized for same process.
  • Type: boolean
  • Required: No
  • Default: false

noValueMethods:

Do not generate methods for valuetypes.
  • Type: boolean
  • Required: No
  • Default: false

nowarn:

Turn off rmic warnings.
  • Type: boolean
  • Required: No
  • Default: false

outputDirectory:

Specifies where to place rmic generated class files. If the generated files need to be included in the main project artifact, this parameter can be set to ${project.build.outputDirectory}.
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.directory}/rmi-classes

poa:

Enable poa generation.
  • Type: boolean
  • Required: No
  • Default: false

sources:

A List of Source configurations to compile.
  • Type: java.util.List
  • Required: No

staleMillis:

Time in milliseconds between automatic recompilations. A value of 0 means that up to date rmic output classes will not be recompiled until the source classes change.
  • Type: int
  • Required: No
  • Default: 0

verbose:

Enable verbose output.
  • Type: boolean
  • Required: No
  • Default: false

version:

The version of the rmi protocol to which the stubs should be compiled. Valid values include 1.1, 1.2, compat. See the rmic documentation for more information. If nothing is specified the underlying rmi compiler will choose the default value. For example, in sun jdk 1.5 the default is 1.2.
  • Type: java.lang.String
  • Required: No