The bad thing about this way of doing it is that it is not portable. E.g. macs don't have a tools.jar.
Ruel Loehr JBoss, a division of Red Hat QA ----------------------------- 512-342-7840 ext 2011 Yahoo: ruelloehr Skype: ruelloehr AOL: dokoruel -----Original Message----- From: Borut Bolčina [mailto:[EMAIL PROTECTED] Sent: Friday, September 08, 2006 8:47 AM To: Maven Users List Subject: Re: rmic plugin Use ant task like this: <build> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> <plugin> <artifactId>maven-site-plugin</artifactId> <version>2.0-beta-5</version> <configuration> <inputEncoding>utf-8</inputEncoding> <outputEncoding>utf-8</outputEncoding> </configuration> </plugin> <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}/classes" classpathref="maven.compile.classpath" classname="com.your.class.to.be.RMICompiled" /> </tasks> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> <dependencies> <dependency> <groupId>com.sun</groupId> <artifactId>tools</artifactId> <scope>system</scope> <version>1.5</version> <systemPath>${java.home}/../lib/tools.jar</systemPath> </dependency> </dependencies> </plugin> </plugins> </build> Then simply invoke mvn package for example. Cheers, Borut 2006/9/8, Israel Alvarez <[EMAIL PROTECTED]>: > > Hi > I´d like to know if a rmic plugin for Maven2 exists and if there is some > documentation about it. I´ve been looking for it but I didn't find > anything. > Thanks > > _________________________________________________________________ > Descarga gratis la Barra de Herramientas de MSN > > http://www.msn.es/usuario/busqueda/barra?XAPID=2031&DI=1055&SU=http%3A//www.hotmail.com&HL=LINKTAG1OPENINGTEXT_MSNBH > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
