You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Michael Niemaz <Mi...@xrce.xerox.com> on 2004/11/10 09:52:40 UTC

ant rmic task with maven

Hi all,
    Sorry to bother with that question but i could not make it work 
looking at other posts ;-(
    I having to rmic some classes and I seem not to be able to do it 
with maven.
    Here's my code in maven.xml:

            <postGoal name="java:compile">
            <ant:rmic
    classname="com.xerox.similX.servers.RemoteInterfaceImpl"
    base="${maven.compile.target}" />
            <ant:rmic classpath="${basedir}/xip/lib/jxip.jar"
    classname="com.xerox.similX.servers.xip.XIPInterfaceImpl"
    base="${maven.compile.target}" />
            </postGoal>

    I thought we could access ant like that but I get the following error:

        Element... ant:rmic
        Line...... 58
        Column.... 109
        base does not exist!

    My question is : What should I use instead of 'base'? Are the 'Maven 
ant' tasks attributes different from the Ant ones?
    Or is it just that '${maven.compile.target}' is not defined at all? 
I should check that btw.

Any ideas?

Thx,

--mike



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


[SOLVED]: ant rmic task with maven

Posted by Michael Niemaz <Mi...@xrce.xerox.com>.
And indeed the problem was the value of the 'base' attribute which was 
accidently set to
the JVM target ... so instead of 'maven.compile.target', put 
'maven.build.dest' and it works
fine ;-)

--mike

Michael Niemaz wrote:

> Hi all,
>    Sorry to bother with that question but i could not make it work 
> looking at other posts ;-(
>    I having to rmic some classes and I seem not to be able to do it 
> with maven.
>    Here's my code in maven.xml:
>
>            <postGoal name="java:compile">
>            <ant:rmic
>    classname="com.xerox.similX.servers.RemoteInterfaceImpl"
>    base="${maven.compile.target}" />
>            <ant:rmic classpath="${basedir}/xip/lib/jxip.jar"
>    classname="com.xerox.similX.servers.xip.XIPInterfaceImpl"
>    base="${maven.compile.target}" />
>            </postGoal>
>
>    I thought we could access ant like that but I get the following error:
>
>        Element... ant:rmic
>        Line...... 58
>        Column.... 109
>        base does not exist!
>
>    My question is : What should I use instead of 'base'? Are the 
> 'Maven ant' tasks attributes different from the Ant ones?
>    Or is it just that '${maven.compile.target}' is not defined at all? 
> I should check that btw.
>
> Any ideas?
>
> Thx,
>
> --mike
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> .
>

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