I am trying to generate source files by using the idlj-maven-plugin. I have configured the plugin in the following way:
<build>
    <pluginManagement>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>idlj-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <compiler>idlj</compiler>
                    <includeDirs>
                        <includeDir>/additionalIdlFiles</includeDir>
                    </includeDirs>
                </configuration>
            </plugin>
            </plugins>
    </pluginManagement>
</build>
It works fine (it generates source files) when I'm using the following command in terminal:
mvn idlj:generate
However I would like to make this plugin work during the generate-sources phase. How can I do that? I have tried to specify the phase like below:
<phase>generate-sources</phase>
But it does not work. The: mvn generate-resources does not create any source files from idl files.