You need to add the following dependency:

          <dependency>
            <groupId>ant</groupId>
            <artifactId>ant-junit</artifactId>
            <version>1.6.5</version>
          </dependency> 

Chris

> -----Original Message-----
> From: shinjan sen [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, 06 January, 2007 07:16
> To: Maven Users List
> Subject: Issue in calling ant file from maven
> 
> Hi,
> I am using maven-antrun-plugin to call an ant script which 
> has got the usage of <junt> tag. I have added junit as a 
> dependency in my dependency list in the pom.xml. when I try 
> to execute the same I get an error stating that ant couldn't 
> understand the task junit.
> Can anyone please help me in debuggin this.
> 
> My pom.xml is :
> 
> 
> <project>
>   <modelVersion>4.0.0</modelVersion>
>   <artifactId>my-test-app</artifactId>
>   <groupId>my-test-group</groupId>
>   <version>1.0-SNAPSHOT</version>
> 
>   <build>
>     <plugins>
> 
>       <plugin>
>         <artifactId>maven-antrun-plugin</artifactId>
>         <executions>
>           <execution>
>             <phase>install</phase>
>             <configuration>
>               <tasks>
>     <property name="path.string" refid="maven.compile.classpath"/>
>                 <ant antfile="test_build.xml" inheritRefs="true">
>                   <target name="test"/>
>                 </ant>
>               </tasks>
>             </configuration>
>             <goals>
>               <goal>run</goal>
>             </goals>
>           </execution>
>         </executions>
>         <dependencies>
>   <dependency>
>       <groupId>junit</groupId>
>       <artifactId>junit</artifactId>
>       <version>3.8.1</version>
>     </dependency>
>           <dependency>
>             <groupId>ant</groupId>
>             <artifactId>ant-antlr</artifactId>
>             <version>1.6.5</version>
>           </dependency>
>           <dependency>
>             <groupId>antlr</groupId>
>             <artifactId>antlrall</artifactId>
>             <version>2.7.4</version>
>           </dependency>
>         </dependencies>
>       </plugin>
> 
>     </plugins>
>   </build>
> </project>
> 
> 
> 
> Thanks a pile
> 
> Shinjan
> 

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

Reply via email to