Fork me on GitHub

rmic:test-rmic

Full name:

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

Description:

Compiles rmi stubs and skeleton classes from a remote implementation class. By default runs against files in the test-classes directory.

Attributes:

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

Optional Parameters

Name Type Since Description
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.
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.
testClassesDirectory File 1.0 Directory tree where the compiled Remote classes are located.
Default value is: ${project.build.testOutputDirectory}.
testOutputDirectory File 1.0 Specifies where to place rmic generated class files. If the generated files need to be included in the project test artifact, this parameter can be set to ${project.build.testOutputDirectory}.
Default value is: ${project.build.directory}/rmi-test-classes.
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

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

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

testClassesDirectory:

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

testOutputDirectory:

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

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