Hi,
I am using jmeter-maven-plugin and jmeter-analysis-maven-plugin to run some of my jmeter tests. I have built my pom.xml using
https://github.com/jmeter-maven-plugin/jmeter-maven-plugin-example/blob/master/pom.xml as my reference. When I run "mvn verify -PFunctional", nothing get runs:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building ubx-jmeter-tests 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ ubx-jmeter
-tests ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\MavenRepo\JmeterTests\ubx-jmeter\s
rc\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ ubx-jmeter-test
s ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ ub
x-jmeter-tests ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\MavenRepo\JmeterTests\ubx-jmeter\s
rc\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ ubx-jme
ter-tests ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ ubx-jmeter-tests -
--
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ ubx-jmeter-tests ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.200 s
[INFO] Finished at: 2015-05-03T16:42:35-04:00
[INFO] Final Memory: 11M/304M
[INFO] ------------------------------------------------------------------------
I then moved to running each goal individually:
1. mvn com.lazerycode.jmeter:jmeter-maven-plugin:1.10.1:jmeter
This runs fine and my jmeter test ran and created .jtl file at the expected directory albeit it had date in it
even though I had this flag in my pom : <testResultsTimestamp>false</testResultsTimestamp>. For now I am OK on this front, just need some thing to get going. I believe this would resolve itself, if I can somehow get the original problem of running entire lifecycle by one command as stated above
2. mvn com.lazerycode.jmeter:jmeter-analysis-maven-plugin:1.0.5:analyze
This fails with following error: [ERROR] Failed to execute goal com.lazerycode.jmeter:jmeter-analysis-maven-plugi
n:1.0.5:analyze (default-cli) on project ubx-jmeter-tests: The parameters 'sourc
e' for goal com.lazerycode.jmeter:jmeter-analysis-maven-plugin:1.0.5:analyze are
missing or invalid -> [Help 1]
Attached is my pom.xml. Please let me know if there is anything wrong with it. I am relatively newbie to the world of maven and its plugins
Appreciate the help
Thanks,
sd