This plugin works with Maven 2 and uses the java rmic compiler to generate classes used in remote method invocation.
This plugin is normally used after Java compilation, during the process-classes phase of a build. Detailed instructions on how to use the RMIC Maven Plugin can be found on the usage page.
Below is a basic example of configuring your project build to use the RMIC Plugin. By default, the plugin will search for all classes that implement the java.rmi.Remote interface. Output will be written to the directory target/rmi-output.
<project> ... <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>rmic-maven-plugin</artifactId> <version>${project.version}</version> <executions> <execution> <id>rmi compilation</id> <goals> <goal>rmic</goal> </goals> </execution> </executions> </plugin> </plugins> ... </build> ... </project>