You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ruel Loehr <ru...@jboss.com> on 2005/11/29 18:17:20 UTC
[m2] RMIC plugin - no plugin workaround
Here is how I am able to RMIC items using maven2.
This might be good to have as a miniguide or something until a real
plugin is in place.
In the pom where you need to RMIC, you can use the ant run plugin to
RMIC your stuff. You need to add a scope and system path to the
tool.jar in order to pick up the necessary classes. For some reason
the system level java_home defaults to the jre lib on my box, so I had
up it a directory to get to the real tools jar.
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>compile</phase>
<configuration>
<tasks>
<rmic base="${basedir}/target/classes"
verify="true"
iiop="false"
idl="false"
debug="false"
stubVersion="1.2">
<include name="**/NamingServer.class"/>
</rmic>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>sun</groupId>
<artifactId>tools</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${java.home}/../lib/tools.jar</systemPath>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
Ruel Loehr
JBoss QA
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org