Hi Florian,

If you want to call an Ant task, you can use maven-antrun-plugin :
http://maven.apache.org/plugins/maven-antrun-plugin/

Regards,
Yann

--- [EMAIL PROTECTED] a écrit :

> 
> Hello,
> 
> I want to call from my Maven 2.0 pom.xml File a special ant Task.
> (The corresponding plugin exist only for Maven 1.0.2).
> 
> I follow the documentation on  http://maven.apache.org, but for me it seems
> that the documentation is 1.0.2 related and not 2.0.
> 
> My pom.xml looks like:
> 
> <project xmlns="http://maven.apache.org/POM/4.0.0";
>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";
>       >
>       <modelVersion>4.0.0</modelVersion>
>       <groupId>com.gud.pdvcms</groupId>
>       <artifactId>PDVCMS</artifactId>
>       <packaging>jar</packaging>
>       <version>1.0-SNAPSHOT</version>
>       <name>PDVCMS</name>
>       <url>http://d162722:8080/JSPWiki</url>
>       <build>
>             <outputDirectory>classes</outputDirectory>
>             <sourceDirectory>src</sourceDirectory>
>             <testSourceDirectory>test</testSourceDirectory>
>       </build>
> </project>
> 
> I also specified a maven.xml File:
> <project xmlns:ant="jelly:ant" >
>       <goal name="mygoal">
>           <ant:ant dir="${basedir}" antfile="build.xml" target="generate"/>
>       </goal>
> </project>
> 
> Always I got
> 
> c:\ mvn mygoal
> [INFO] Scanning for projects...
> [INFO]
> -------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> -------------------------------------------------------------------------
> [INFO] Invalid task 'mygoal': you must specify a valid lifecycle phase, or
> a goa
> l in the format plugin:goal or
> pluginGroupId:pluginArtifactId:pluginVersion:goal
> 
> [INFO]
> -------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> -------------------------------------------------------------------------
> [INFO] Total time: < 1 second
> [INFO] Finished at: Thu Nov 03 17:33:39 CET 2005
> [INFO] Final Memory: 1M/2M
> [INFO]
> -------------------------------------------------------------------------
> 
> How should I specified the goal that it can process?
> 
> I also tried a Version like
> <project .... <preGoal "compile">
> 
> it also don't call my ant script.
> It seems to me that my maven.xml will not used during build process.
> 
> 
> Thanxs
> 
> florian
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



        

        
                
___________________________________________________________________________ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com

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

Reply via email to