Hi Ief,

Dependencies used in ant tasks in maven 1.X must be loaded in the root 
classloader

<dependency>
  ....
  <properties>
    <classloader>root</classloader>
  </properties>
</dependency> 


Arnaud

> -----Message d'origine-----
> De : Ief Berben [mailto:[EMAIL PROTECTED] 
> Envoyé : lundi 24 octobre 2005 13:00
> À : [email protected]
> Objet : maven classpath references
> 
> I'm trying to execute the following ant task, but maven tells 
> me it can't find the weblogic.Deployer class
> 
> <tasks>
> <java classname="weblogic.Deployer" fork="yes" dir="${basedir}"
> failonerror="true">
> <classpath>
> <path refid="dependency.classpath"/>
> </classpath>
> <arg value="-adminurl"/>
> <arg value="${wl.adminurl}"/>
> <arg value="-debug"/>
> <arg value="-name"/>
> <arg value="${POM.artifact.id <http://POM.artifact.id>}"/> 
> <arg value="-source"/> <arg 
> value="${POM.output.dir}/${POM.artifact.id 
> <http://POM.artifact.id>}-${ POM.version}.ear"/> <arg 
> value="-targets"/> <arg value="${wl.adminserver}"/> <arg 
> value="-username"/> <arg value="${wl.adminusername}"/> <arg 
> value="-password"/> <arg value="${wl.adminpassword}"/> <arg 
> value="-deploy"/> <arg value="-upload"/> </java> </tasks>
> 
> Anyone knows how I can reference the difference classpath's 
> maven constructs ???
> 
> Tnx,
> 
> Ief Berben
> 




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

Reply via email to