Jo Vandermeeren wrote:
On 6/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
(1) How can I compile those java files by 'rmic' in Maven2 or How
the
pom.xml would look like ?
(2) What do I need to do to compile those java files by 'rmic' in
Maven2 ?
Hi Patel,
You might want to have a look at the freehep-rmic-plugin and its usage:
http://java.freehep.org/freehep-rmic-plugin/
Cheers
Jo
Or do something like this
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<phase>process-classes</phase>
<configuration>
<tasks>
<rmic
classname="..."
stubversion="..."
base="${basedir}/target/classes"
classpathref="maven.compile.classpath" />
<rmic
classname="..." stubversion="..."
base="${basedir}/target/classes"
classpathref="maven.compile.classpath" />
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.5</version>
<scope>system</scope>
<systemPath>
${java.home}/../lib/tools.jar
</systemPath>
</dependency>
</dependencies>
</plugin>
HTH
Armin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]