You can try this :
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<taskdef name="wldeploy"
classname="weblogic.ant.taskdefs.management.WLDeploy"/>
<wldeploy action="deploy"
adminurl="t3://localhost:7001"
user="webadmin"
password="webadmin"
verbose="true"
debug="true"
targets="extranet"
name="extranet"
source="${basedir}/extranet-ear-0.1.ear"
/>
</tasks>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>your jar groupID</groupId>
<artifactId>your jar
artifactId</artifactId> <version>****</version>
</dependency>
</plugin>
</plugins>
</build>
The jar that contains the ant task will be
automaticaly added in ant classpath.
Yan.
--- "Veerman, Christiaan"
<[EMAIL PROTECTED]> a écrit :
> Hello:
>
> I am trying to remotely deploy to Weblogic through
> Ant within my pom.xml
>
> The deployable uses a class within the app server
> jar (weblogi.jar); I
> want to use the jar for goal:install but it should
> be 'provided'.
>
> Is there a way to get a handle on the
> <scope>provided</scope> classpath
> in the taskdef below?
>
> Here's a snip:
>
> <plugin>
>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <phase>install</phase>
> <configuration>
> <tasks>
>
> <taskdef
> name="wldeploy"
> classpath="<!--
> insert some great
> solution -->"
>
>
classname="weblogic.ant.taskdefs.management.WLDeploy"/>
>
> <wldeploy
> action="deploy"
>
> adminurl="t3://localhost:7001"
> user="webadmin"
>
> password="webadmin"
> verbose="true"
> debug="true"
>
> targets="extranet"
> name="extranet"
>
> source="${basedir}/extranet-ear-0.1.ear"
> />
> </tasks>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
>
>
> Cheers,
>
> Christiaan
>
> ****DISCLAIMER
> The information contained in this e-mail and
> attachments, if any, is confidential and may be
> subject to legal privilege. If you are not the
> intended recipient, you must not use, copy,
> distribute or disclose the e-mail and its
> attachment, or any part of its content or take any
> action in reliance of it. If you have received this
> e-mail in error, please e-mail the message back to
> the sender by replying and then deleting it. We
> cannot accept responsibility for loss or damage
> arising from the use of this e-mail or attachments,
> and recommend that you subject these to your virus
> checking procedures prior to use
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
___________________________________________________________________________
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs
exceptionnels pour appeler la France et l'international.
Téléchargez sur http://fr.messenger.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]