You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by pa...@jpmorgan.com on 2007/06/05 22:52:51 UTC

RMIC help for Maven2

Hi,

      We want to mavenize our project.
      In our project, we are compiling some java files using 'rmic'.
      Our build.xml looks like below :


-----------------------------------------------------------------------------------------------------------------------------------------
      ............
      ............
      ............
      ............
      <rmic classname="com.myapp..impl.rmi.server.TableServiceImpl"
                  base="${build}"
                  stubversion="1.2">
            <classpath refid="classpath.production"/>
      </rmic>

      ............
      ............
      ............
      ............

-----------------------------------------------------------------------------------------------------------------------------------------

      My question is :

      (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 ?

      Really appreciated your time and help very much in advance !!!

Thanks,
Nayan



This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates.

This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase & Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you.
Please refer to http://www.jpmorgan.com/pages/disclosures for disclosures relating to UK legal entities.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: RMIC help for Maven2

Posted by Armin Ehrenfels <Ar...@t-online.de>.
Jo Vandermeeren wrote:

> On 6/5/07, patel.nayan@jpmorgan.com <pa...@jpmorgan.com> 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: RMIC help for Maven2

Posted by Jo Vandermeeren <jo...@gmail.com>.
On 6/5/07, patel.nayan@jpmorgan.com <pa...@jpmorgan.com> 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