mvn jmeter:jmeter -DselectConfiguration=configuration

50 views
Skip to first unread message

Stefan Kok

unread,
Feb 16, 2023, 1:04:04 AM2/16/23
to Maven JMeter Plugin Users
Hi 

I am running the attached pom file for jmeter-maven plugin with no problems using "mvn clean verify".

However, I would like to say for argument's sake run the JMeter test script for production.  I have referenced the below documentation:

https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/wiki/Basic-Configuration#running-on-the-command-line

Using the below command, however, fails:

mvn clean jmeter:configure jmeter:jmeter -DselectConfiguration=PROD_ENV

Error is shown below:

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  4.442 s
[INFO] Finished at: 2023-02-16T07:59:40+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.lazerycode.jmeter:jmeter-maven-plugin:3.6.0:jmeter (default-cli) on project jmeter-maven-wrapper:
[ERROR]
[ERROR] No results for path: $[0]
[ERROR]
[ERROR] Possible Cause 1: Have you added the configure goal to your POM?
[ERROR]
[ERROR]     <execution>
[ERROR]         <id>configuration</id>
[ERROR]         <goals>
[ERROR]             <goal>configure</goal>
[ERROR]         </goals>
[ERROR]     </execution>
[ERROR]
[ERROR] Possible Cause 2: Have you run `mvn jmeter:configure` for your current Execution ID?
[ERROR]
[ERROR] Current Execution ID: PROD_ENV
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Any assistance and/or pointers will be highly appreciated.

Regards
Stefan





pom.xml
Reply all
Reply to author
Forward
0 new messages