I'm using Apache JMeter for performance testing of my web application via com.lazerycode.jmeter:jmeter-maven-plugin. Since version 3.2 brings up lots of changes, I wondered if I could use this version in jmeter-maven-plugin (this is not part of the Apache JMeter-project).
I tried the following:
<build>
<plugins>
<plugin>
<groupId>com.lazerycode.jmeter</groupId>
<artifactId>jmeter-maven-plugin</artifactId>
<version>2.1.0</version>
<configuration>
<jmeterVersion>3.2</jmeterVersion>
<jMeterProcessJVMSettings>
<xms>1024</xms>
<xmx>1024</xmx>
<arguments>
<argument>-Xprof</argument>
<argument>-Xfuture</argument>
</arguments>
</jMeterProcessJVMSettings>
</configuration>
<executions>
<execution>
<id>jmeter-tests</id>
<phase>test</phase>
<goals>
<goal>jmeter</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
The standard version for jmeter in jmeter-maven-plugin is 3.1. I found this to specify libraries: https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/wiki/Specifying-JMeter-Version
The configuration above did not work for me. I get a NPE (null-pointer-exception).
[INFO] >>> jmeter-maven-plugin:2.1.0:jmeter (jmeter-tests) > :configure @ EAdresseBatchImportCapacityTests >>>
[INFO]
[INFO] --- jmeter-maven-plugin:2.1.0:configure (configure) @ EAdresseBatchImportCapacityTests ---
[INFO] -------------------------------------------------------
[INFO] Configuring JMeter...
[INFO] -------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.136 s
[INFO] Finished at: 2017-04-28T13:28:40+02:00
[INFO] Final Memory: 20M/217M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.lazerycode.jmeter:jmeter-maven-plugin:2.1.0:configure (configure) on project EAdresseBatchImportCapacityTests: Failure to find org.apache.jmeter:ApacheJMeter_monitors:jar:3.2 in http://maven-repository.11.am-gruppe.de:8090/nexus/content/groups/gdis was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -> [Help 1]
If I use the old library (ApacheJMeter_monitors:jar:3.1) like described in the link above, it does not work (NPE), a newer library does not exist because the monitors-package was removed from project dependency. (as you can see here: https://jmeter.apache.org/usermanual/build-monitor-test-plan.html)
Do I have to wait for a new version of jmeter-maven-plugin?
Maybe someone of you can help me to figure out how I can make it work. Thanks in advance.