This plugin will process all *.idl files in the sourceDirectory into a common generated sources output directory. This will occur during the generate-sources phase and the sources directory will be added to the project for the compile phase.
To execute the goal in stand alone mode, you can type:
<<<mvn idlj:generate>>>
By default, idlj-maven-plugin uses the built-in idlj compiler, if available. As of Java 9, uses the glassfish idl compiler. To use the glassfish idl compiler explicitly, specify "glassfish" as the compiler type:
...
<configuration>
<compiler>glassfish</compiler>
</configuration>
...To use the jacorb idl compiler, include a dependency on the jacorb idl compiler:
<dependency>
<groupId>org.jacorb</groupId>
<artifactId>idl-compiler</artifactId>
<version>3.8</version>
<scope>compile</compile>
</dependency>(or any desired version) and specify "jacorb" as the compiler type:
...
<configuration>
<compiler>jacorb</compiler>
</configuration>
...... <compiler>idlj</compiler> ...
... <includeDirs> <includeDir>all/includes</include> </includeDirs> ...
... <sources> <source> ... items to select specific files and configure the group </source> </sources> ...
... <source> <compatible>false</compatible> </source> ...
... <source> <emitStubs>false</emitStubs> </source> ...
... <source> <emitSkeletons>false</emitSkeletons> </source> ...
... <source> <packagePrefix>com.mycompany</packagePrefix> </source> ...
...
<source>
<packagePrefixes>
<packagePrefix>
<type>module1</type>
<prefix>com.mycompany.module1</prefix>
</packagePrefix>
<packagePrefix>
<type>module2</type>
<prefix>com.mycompany.module2</prefix>
</packagePrefix>
</packagePrefixes>
</source>
......
<source>
<packageTranslations>
<packageTranslation>
<type>module1</type>
<package>com.mycompany.module1</package>
</packageTranslation>
<packageTranslation>
<type>module2</type>
<package>com.mycompany.module2</package>
</packageTranslation>
</packageTranslations>
</source>
......
<source>
<includes>
<include>YOUR_IDL_FILE.idl</include>
<include>*_tool.idl</include>
</includes>
</source>
......
<source>
<excludes>
<exclude>YOUR_IDL_FILE.idl</exclude>
<exclude>*_tool.idl</exclude>
</excludes>
</source>
......
<source>
<defines>
<define>
<symbol>MY_SYMBOLE1</symbol>
</define>
<define>
<symbol>MY_SYMBOLE2</symbol>
<value>FOO</value>
</define>
</defines>
</source>
......
<source>
<additionalArguments>
<additionalArgument>-nowarn</additionalArgument>
</additionalArguments>
</source>
...<project>
...
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>idlj-maven-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<compiler>idlj</compiler>
<sources>
<source>
<includes>
<include>YOUR_IDL_FILE.idl</include>
</includes>
<emitStubs>true</emitStubs>
<emitSkeletons>true</emitSkeletons>
</source>
</sources>
<includeDirs>
<includeDir>AN_IDL_DIRECTORY</includeDir>
<includeDir>ANOTHER_IDL_DIRECTORY</includeDir>
</includeDirs>
</configuration>
</plugin>
</plugins>
</build>
...
</project>