Hi Joe, I added this in my POM
<build> <plugins> .... <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <id>process-classes-rmic</id> <!-- needs to be unique among executions --> <phase>process-classes</phase> <configuration> <tasks> <echo>Running RMIC</echo> <rmic base="${project.build.directory}" classpathref="maven.compile.classpath" classname="com.my.class.to.be.RMICompiled" /> </tasks> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> and neither mvn clean compile nor mvn antrun:run produces stub classes. Even "Running RMIC" is not displayed. Do I have to set something before? Thanks. -Borut 2006/9/6, Heck, Joe <[EMAIL PROTECTED]>:
I never found an RMI plugin, but I resolved the issue by binding in an ant-based task to generate the RMIC stubs to the process-classes phase. Here's the relevant POM snippet... It gets specific to the project (defining which classes get the RMIC task invoked on them), but it has worked reasonably well for us. -joe <project...> ... <build> ... <plugins> ... <plugin> ... <executions> ... <execution> <id>process-classes-rmic</id> <!-- needs to be unique among executions --> <phase>process-classes</phase> <configuration> <tasks> <echo>Running RMIC</echo> <rmic base="${project.build.directory}" classpathref="maven.compile.classpath" classname="com.disney.foo.bar" /> <rmic base="${project.build.directory}" classpathref="maven.compile.classpath" classname="com.disney.foo.baz" /> </tasks> </configuration> <goals> <goal>run</goal> </goals> </execution> -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Borut Bolcina Sent: Wednesday, September 06, 2006 10:44 AM To: maven Subject: Maven 2 RMI Hello, anybody have a Maven 2 RMI compiler plugin? I can't find any. Thanks, Borut --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]