The opensplice-idl-plugin for Apache Maven drives the OpenSplice DDS' idlpp command to process IDL files and generate corresponding code (DDS types and typed DDS DataReaders and DataWriters).
By default (i.e. without additional configuration) this plugin
searches for files with an .idl extension in the src/main/idl/
directory, and generates Java code in the
target/generated-sources/idl/
directory.
The generated Java files are automatically added to the list of Java source files to be compiled by Maven during the "compile" phase.
In addition, the following optional parameters can be configured:
Name | Type | Description |
---|---|---|
outDir |
File |
The directory to output the generated sources to. Default value is: ${project.build.directory}/generated-sources/idl |
includeDirs |
File[] |
Additional include directories containing additional *.idl files required for compilation. |
idlDir |
File |
The source directory containing *.idl files. Default value is: ${basedir}/src/main/idl |
macros |
String[] |
Preprocessing macros definitions
(used with |
idlc |
String |
The compiler executable. Default value is: idlc |
language |
String |
The language of generated code.
Should be one of Default value is: java |
mode |
String |
Standalone or CORBA mode.
Should be either Default value is: -S |