Modify, build and create new JAR file from existing JMeter Plugin

301 views
Skip to first unread message

yoav...@gmail.com

unread,
Jul 18, 2016, 4:45:58 AM7/18/16
to jmeter-plugins
My goal is to modify the existing plugin, and build the new JAR file (JMeterPlugins-Standard.jar)

Facing issues to build JAR (before / after updating plugins source code). Any suggestion / tutorials? 


Building JMeter-Plugins

a) Checkout latest source code from GitHub:

git clone https://github.com/undera/jmeter-plugins.git

b) go to sources subdirectory:

cd jmeter-plugins

c) run Maven build:

mvn clean package

Maven tool will download all required stuff, compile, test and package the plugins. Resulting artifacts located in target directories of plugin sets.

Andrey Pokhilko

unread,
Jul 18, 2016, 1:00:19 PM7/18/16
to jmeter-...@googlegroups.com
Hi,

The way to build the plugins is still valid, but repository layout has changed and now there is not Standard plugins. Look into /target/ directories and find there the individual plugins from our catalogue...

Andrey Pokhilko

--
You received this message because you are subscribed to the Google Groups "jmeter-plugins" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jmeter-plugin...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Yoav Agami

unread,
Jul 20, 2016, 4:54:25 AM7/20/16
to jmeter-...@googlegroups.com
Hi,

Can you please specify? I looked into: https://github.com/undera/jmeter-plugins/ (https://jmeter-plugins.org/ -> Source Code)
But don't see /target folder with specific plugins.

My goal is to download -> modify -> compile a plugin, that I will be able to receive the following measurements: Throughput, HIT's per second, Transactions (and errors).

Thanks a lot 


--
You received this message because you are subscribed to a topic in the Google Groups "jmeter-plugins" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jmeter-plugins/ggTlP2OCG5c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jmeter-plugin...@googlegroups.com.

Andrey Pokhilko

unread,
Jul 20, 2016, 5:09:13 AM7/20/16
to jmeter-...@googlegroups.com
Call "mvn clean package" first. Then search for "target" directories anywhere inside the repo, there will be tens of them, each with some plugin JARs in it.

Andrey Pokhilko

Yoav Agami

unread,
Jul 24, 2016, 7:02:21 AM7/24/16
to jmeter-...@googlegroups.com
If I call: mvn clean package -DskipTests -> the compilation passes and can see .jar files in /target folders
If I call: mvn clean package -> exception attached on the bottom

My goal:
1) Compile and create .jar of original plugin that is relevant for: jmeter-plugins\graphs\graphs-additional\src\main\java\kg\apc\jmeter\vizualizers
2) Modify "addHit" method (send measurements to my own server / file)
3) Compile -> test new updated plugin

Question: I copied jmeter-plugins-graphs-basic-2.0.jar, jmeter-plugins-graphs-additional-2.0.jar into <JMeter>\lib\ext folder -> re-opened JMeter from cmd -> opened the JMX test -> Searched for Listener that can be seen in the sources (ResponseTimeOverTimeGui / TransactionsPerSecondGui / BytesThroughputOverTimeGui / HitsPerSecondGui)
=> But can't see any of them in JMeter UI. Can you please advice?


Exception:
org.openqa.selenium.os.UnixProcess checkForError SEVERE: org.apache.commons.exec.ExecuteException: Execution failed (Exit value:-559038737. Caused by java.io.IOException: Cannot run program "C:\Users\<user>\AppData\Local\Temp\driver8877743767510091703.cmd" (in directory "."): CreateProcess error=193, %1 is not a valid Win32 application)

yoav...@gmail.com

unread,
Aug 11, 2016, 3:33:51 AM8/11/16
to jmeter-plugins
Is there still a way (backward compatibility), using the mvn clean pakage (I need to add -DskipTests to pass) - that it will pack all into one JAR (similar to the Standard Set that was before)?
Thanks

Andrey Pokhilko

unread,
Aug 11, 2016, 5:42:39 AM8/11/16
to jmeter-...@googlegroups.com

Hi,

No, but you can build yourself the maven pom.xml which will do it, it is very easy.

Andrey Pokhilko

Reply all
Reply to author
Forward
0 new messages