You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by nafise hassani <na...@yahoo.com> on 2004/11/10 06:58:36 UTC

what is maven class-path??

hi 
I want to use maven to build jetspeed2 and I need to put "mysql" driver in maven 
"class-path" I read the maven installitionguid and also "getting start" page but I did'nt get the location that I should put my database diver calss????
 
suggestion???
 
Regards 
nafise

			
---------------------------------
Do you Yahoo!?
 Check out the new Yahoo! Front Page. www.yahoo.com

Re: what is maven class-path??

Posted by Christian Plate <cp...@web.de>.
> I want to use maven to build jetspeed2 and I need to put "mysql" driver in
> maven "class-path" I read the maven installitionguid and also "getting
> start" page but I did'nt get the location that I should put my database
> diver calss????

Add it as dependency to your project.xml. Like this:

  <dependencies>
    <dependency> 
      <groupId>mysql</groupId>
      <artifactId>mysql-connector-java</artifactId>
      <version>3.0.10-stable-bin</version>
    </dependency>

Christian

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


ant rmic task with maven

Posted by Michael Niemaz <Mi...@xrce.xerox.com>.
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