You do not need the <target> tags.  Just use:

<tasks>
        <echo message="testing"/>
</tasks>

Doug Tanner
 

> -----Original Message-----
> From: Baz [mailto:[EMAIL PROTECTED]
> Sent: Monday, April 30, 2007 8:49 PM
> To: Maven Users List
> Subject: SPAM:How to run ant tasks in maven 2?
> 
> All,
> 
> I read the page in
> http://maven.apache.org/plugins/maven-antrun-plugin/usage.html but i
still
> cannot make a simple ant task work in maven 2. Please help.
> 
> Here is my code:
> 
>   <plugin>
>     <artifactId>maven-antrun-plugin</artifactId>
>       <executions>
>         <execution>
>         <phase>deploy</phase>
>           <configuration>
>             <tasks>
>               <target name="aaa">
>                 <echo message="Testing"/>
>               </target>
>             </tasks>
>           </configuration>
>           <goals>
>             <goal>run</goal>
>           </goals>
>         </execution>
>       </executions>
>   </plugin>


****************************************************************************************
BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is intended 
only for the individual or entity to which it is addressed and may contain 
information that is confidential and protected by law. Unauthorized review, 
use, disclosure, or dissemination of this communication or its contents in any 
way is prohibited and may be unlawful. If you are not the intended recipient or 
a person responsible for delivering this message to an intended recipient, 
please notify the original sender immediately by e-mail or telephone, return 
the original message to the original sender or to [EMAIL PROTECTED], and 
destroy all copies or derivations of the original message. Thank you.  
(BFeComNote Rev. 08/01/2005)
***************************************************************************************

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

Reply via email to