maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Borut Bolčina" <borut.bolc...@gmail.com>
Subject Re: rmic plugin
Date Fri, 08 Sep 2006 13:47:23 GMT
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 <israelab77@hotmail.com>:
>
> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message