You need to add the jar as a dependency to the antrun plugin, something
like:

      <plugin>      
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          ...
        </executions>
        <dependencies>
          <dependency>
            <groupId>ant</groupId>
            <artifactId>ant-jmeter</artifactId>
            <version>1.0</version>
          </dependency>
        </dependencies>
      </plugin>

Chris

> -----Original Message-----
> From: Jeff Mutonho [mailto:[EMAIL PROTECTED] 
> Sent: Monday, 30 October, 2006 03:40
> To: Maven Users List
> Subject: Using maven-antrun-plugin and taskdef
> 
> I've configured the maven-antrun-plugin as follows :
> 
>      <plugin>
>        <artifactId>maven-antrun-plugin</artifactId>
>        <executions>
>         <execution>
>         <phase>pre-integration-test</phase>
>         <configuration>
>          <tasks>
>          <taskdef name="jmeter"
> classname="org.programmerplanet.ant.taskdefs.jmeter.JMeterTask"/>
>          <jmeter
>               jmeterhome="D:\jakarta-jmeter-2.2"
>                resultlog="${basedir}/loadtests/JMeterResults.jtl">
>             <testplans dir="${basedir}/src/test/jmeter" 
> includes="*.jmx"/>
>          </jmeter>
>         </tasks>
>        </configuration>
>        <goals>
>         <goal>run</goal>
>        </goals>
>       </execution>
>      </executions>
>     </plugin>
> 
> 
> and added  ant-jmeter1-0.jar to my dependencies.However , 
> when I run 'mvn install' I get the following build error :
> 
> [INFO] [site:attach-descriptor]
> [INFO] [antrun:run {execution: default}] [INFO] Executing 
> tasks [INFO] 
> --------------------------------------------------------------
> ----------
> [ERROR] BUILD ERROR
> [INFO] 
> --------------------------------------------------------------
> ----------
> [INFO] Error executing ant tasks
> 
> Embedded error: taskdef class 
> org.programmerplanet.ant.taskdefs.jmeter.JMeterTas
> k cannot be found
> [INFO] 
> --------------------------------------------------------------
> ----------
> 
> 
> Is it  correct to do a "taskdef" definition  the way I did?
> 
> 
> 
> Jeff  Mutonho
> 
> GoogleTalk : ejbengine
> Skype        : ejbengine
> Registered Linux user number 366042
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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

Reply via email to