Hi !
I'm new to Maven and i need some help to launch Jmeter from Maven using
Antlib. I have already a build.xml which works fine, and i would like to call
it from Maven at package phase. My problem is that i dont manage to add the
"ant-jmeter.jar" to the classpath from Maven. (I'm using maven 2.0.2)
Here is the build part of my POM file :
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<configuration>
<tasks>
<ant antfile="build.xml" dir="c:\" target="jmetertarget"/>
<echo message="task complete"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
And here is the error i get :
[INFO] Error executing ant tasks
Embedded error: The following error occurred while executing this line:
C:\build.xml:6: taskdef class
org.programmerplanet.ant.taskdefs.jmeter.JMeterTask cannot be found
Here is my Ant script :
<?xml version="1.0"?>
<project name="TestAnt" default="jmetertarget" basedir=".">
<property name="jmeter.dir" value="c:\Program Files\jakarta-jmeter-2.1.1"
/>
<taskdef name="jmeter"
classname="org.programmerplanet.ant.taskdefs.jmeter.JMeterTask" />
<target name="jmetertarget" description="lance les test Jmeter">
<jmeter
jmeterhome="${jmeter.dir}"
resultlog="${jmeter.dir}/result/JMeterResults.jtl">
<testplans dir="${jmeter.dir}/testplan" includes="*.jmx"/>
</jmeter>
<xslt
in="${jmeter.dir}/result/JMeterResults.jtl"
out="${jmeter.dir}/result/JMeterResults.html"
style="${jmeter.dir}/result/jmeter-results-detail-report.xsl"/>
</target>
</project>
I've got ant-jmeter.jar added to the lib directory of Ant, but i guess it's
not the right way..
Thanks for your help !
Vincent.
---------------------------------
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs
exceptionnels pour appeler la France et l'international.Téléchargez la version
beta.