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]

Reply via email to