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>>>
... <source> <compatible>false</compatible> </source> ...
... <source> <emitStubs>false</emitStubs> </source> ...
... <source> <emitSkeletons>false</emitSkeletons> </source> ...
... <source> <packagePrefix>com.mycompany</packagePrefix> </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>
<packagePrefixes>
<packagePrefixe>
<type>module1</type>
<prefix>com.mycompany.module1</prefix>
</packagePrefixe>
<packagePrefixe>
<type>module2</type>
<prefix>com.mycompany.module2</prefix>
</packagePrefixe>
</packagePrefixes>
</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>