The matter is that i can't use an ant sybase tool in a maven project as this
:

<ant:taskdef name="jag_connect"
classname="com.sybase.jaguar.management.jagtool.ant.ConnectTask">
<ant:classpath>
<ant:path refid="maven.dependency.classpath"/>
</ant:classpath>
</ant:taskdef>


<ant:jag_connect host="${easerver.ip}"
                        password="${easerver.pwd}"
                        port="${easerver.port}"
                        user="${easerver.user}"/>       


In the trace (lauching maven with -e -X), I obtain the following exception
in the stack :

Caused by: org.omg.CORBA.INITIALIZE: can't instantiate default ORB
implementation com.sybase.CORBA.O
RB  vmcid: 0x0  minor code: 0  completed: No
        at org.omg.CORBA.ORB.create_impl(ORB.java:297)
        at org.omg.CORBA.ORB.init(ORB.java:336)
        at
com.sybase.jaguar.management.jagtool.JTContext.initialize(JTContext.java:125
)
        at
com.sybase.jaguar.management.jagtool.ant.ConnectTask.execute(ConnectTask.jav
a:74)
        ... 18 more
Caused by: java.lang.ClassNotFoundException: com.sybase.CORBA.ORB
        at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:217)
        at org.omg.CORBA.ORB.create_impl(ORB.java:295)

Whereas the com.sybase.CORBA.ORB is in maven.dependency.classpath.
My question is which classloader is used by this :

<ant:jag_connect host="${easerver.ip}"
                        password="${easerver.pwd}"
                        port="${easerver.port}"
                        user="${easerver.user}"/>

Is there any possibility to put the class com.sybase.CORBA.ORB (the jar
file) in a directory as maven root classpath, an endorsed dir or somewhere
else ?
Maybe I had to write a plugin to do this ? Is there any documentation on
"writing  a plugin" ?

Olivier


-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 18 juillet 2003 02:28
À : Maven Users List
Objet : RE: Snapshot versions (beta 10)


What does the sybase ant tool matter to maven??? 
-- 
dIon Gillard, Multitask Consulting 
Blog:      http://blogs.codehaus.org/people/dion/ 
Work:      http://www.multitask.com.au 


"Olivier Lamy" <[EMAIL PROTECTED]> wrote on 18/07/2003 
02:10:41 AM: 
> It sounds well :-))) 
> But I can't generate the servicesstub-20030717.044631.jar with 
> jar:install-snapshot 
> Because I can't use the sybase ant tool in a maven project. 
> 
> 
> -----Message d'origine----- 
> De : Brian Ewins [mailto:[EMAIL PROTECTED] 
> Envoyé : jeudi 17 juillet 2003 17:45 
> À : Maven Users List 
> Objet : Re: Snapshot versions (beta 10) 
> 
> 
> 
> Olivier Lamy wrote: 
> 
> > I try to define a snapshot dependency : 
> > 
> > <dependency> 
> > <groupId>serviceslayer</groupId> 
> > <artifactId>servicesstub</artifactId> 
> > <version>SNAPSHOT</version> 
> > </dependency> 
> > 
> > I have generate a snapshot version  in the repository : 
> > servicesstub-20030717.044631.jar 
> 
> if you do 'maven jar:install-snapshot', you will see that it installs 
> not just servicesstub-20030717.044631.jar (or some name like this) but 
> also servicesstub-SNAPSHOT.jar. Similarly for when it deploys to remote 
> repositories. 
> 
> The timestamped jar is created so that you can easily change your 
> project from unrepeatable dependency versions (SNAPSHOTs, which get 
> overwritten every time you do a jar:install-snapshot) to repeatable 
> dependency versions (the timestamped jars) when doing a release. 
> 
> It sounds like what you've done is just copy a timestamped jar into your 
> repository? 
> 
> > It's my company repository. 
> > I have the properties in the project.properties. 
> > maven.mode.online=true 
> > # to get some jars not found at ibiblio 
> > maven.repo.remote= 
> http://ip:8090/maven-respository,http://www.ibiblio.com/ma 
> <http://ip:8090/maven-respository,http://www.ibiblio.com/ma> 
> > ven 
> > 
> > Maven try to download the file 
> > 
> 
http://ip:8090/maven-respository/serviceslayer/jars/servicesstub-SNAPSHOT.ja

> 
<http://ip:8090/maven-respository/serviceslayer/jars/servicesstub-SNAPSHOT.j

> a> 
> > r 
> > 
> > What's wrong ?? (certainly me but why ??) 
> > Olivier 
> > 
> > 
> > 
> > This e-mail, any attachments and the information contained therein 
("this 
> message") are confidential and intended solely for the use of the 
> addressee(s). If you have received this message in error please send it 
back 
> to the sender and delete it. Unauthorized publication, use, 
dissemination or 
> disclosure of this message, either in whole or in part is strictly 
> prohibited. 
> 
> > ********************************************************************** 
> > Ce message électronique et tous les fichiers joints ainsi que  les 
> informations contenues dans ce message ( ci après "le message" ), sont 
> confidentiels et destinés exclusivement à l'usage de la  personne à 
laquelle 
> ils sont adressés. Si vous avez reçu ce message par erreur, merci  de le 
> renvoyer à son émetteur et de le détruire. Toutes diffusion, 
publication, 
> totale ou partielle ou divulgation sous quelque forme que se soit non 
> expressément autorisées de ce message, sont interdites. 
> 
> > ********************************************************************** 
> > 
> > 
> > 
> > --------------------------------------------------------------------- 
> > To unsubscribe, e-mail: [EMAIL PROTECTED] 
> > For additional commands, e-mail: [EMAIL PROTECTED] 
> > 
> > 
> 
> 
> --------------------------------------------------------------------- 
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
> 
> 
> 
> This e-mail, any attachments and the information contained therein 
> ("this message") are confidential and intended solely for the use of 
> the addressee(s). If you have received this message in error please 
> send it back to the sender and delete it. Unauthorized publication, 
> use, dissemination or disclosure of this message, either in whole or 
> in part is strictly prohibited. 
> ********************************************************************** 
> Ce message électronique et tous les fichiers joints ainsi que  les 
> informations contenues dans ce message ( ci après "le message" ), 
> sont confidentiels et destinés exclusivement à l'usage de la 
> personne à laquelle ils sont adressés. Si vous avez reçu ce message 
> par erreur, merci  de le renvoyer à son émetteur et de le détruire. 
> Toutes diffusion, publication, totale ou partielle ou divulgation 
> sous quelque forme que se soit non expressément autorisées de ce 
> message, sont interdites. 
> ********************************************************************** 
> 
> 
> 
> --------------------------------------------------------------------- 
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 


This e-mail, any attachments and the information contained therein ("this message") 
are confidential and intended solely for the use of the addressee(s). If you have 
received this message in error please send it back to the sender and delete it. 
Unauthorized publication, use, dissemination or disclosure of this message, either in 
whole or in part is strictly prohibited.
********************************************************************** 
Ce message électronique et tous les fichiers joints ainsi que  les informations 
contenues dans ce message ( ci après "le message" ), sont confidentiels et destinés 
exclusivement à l'usage de la  personne à laquelle ils sont adressés. Si vous avez 
reçu ce message par erreur, merci  de le renvoyer à son émetteur et de le détruire. 
Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme 
que se soit non expressément autorisées de ce message, sont interdites.
********************************************************************** 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to