1

I have a Jmeter-Maven project and I'd like to put a modified jar file in "/lib/ext" folder.

I've added it to “/src/test/jmeter/lib/ext”, but seems it doesn't work.

Do I need to add dependencies to my POM file or so?

Any suggestions?

Thanks in advance for answers!

1

You can add libraries to "lib/ext" folder as follows:

<configuration>
    <jmeterExtensions>
        <artifact>kg.apc:jmeter-plugins-casutg:2.4</artifact>
    </jmeterExtensions>
</configuration>

Replace kg.apc:jmeter-plugins-casutg:2.4 with your own artifact in form of:

groupId:artifactId:version

References:

  • seems like I have an issue with artifact defining. Here's the jar file that I want to add: testautomationguru.com/download/640, can you help me to define what I need to put inside the <artifact> </artifact>? Thanks in advance! – Konstantin V May 3 '18 at 14:34
  • Hi Dmitri, any suggestion plz? – Konstantin V May 4 '18 at 9:33
0

You can add the JAR files by the following ways:

  • You can either add the jar files from jmeter installations into the
    build path of the project
  • You can make things easier by adding the maven dependencies in POM.

Add the below dependency in POM.xml file

For detailed information refer the following link: https://github.com/jmeter-maven-plugin/jmeter-maven-plugin

  • what do you mean by "add the jar files from jmeter installations into the build path of the project"? to add them to /src/test/jmeter/ or to /target/jmeter? – Konstantin V May 3 '18 at 11:13
  • Refer the link for adding the JAR files in /lib/ext folder github.com/jmeter-maven-plugin/jmeter-maven-plugin/wiki/… – Prasanna venkatesh May 3 '18 at 11:23
  • so, I need to put my jar file to /src/test/jmeter/ and to add to in my POM <jmeterExtensions> <artifact>JAR-NAME</artifact></jmeterExtensions>, right? – Konstantin V May 3 '18 at 11:58
  • yes. this will work – Prasanna venkatesh May 3 '18 at 12:24
  • seems like I put a wrong name into <artifact> </artifact>. Here's the jar file that I want to add: testautomationguru.com/download/640 . Can you tell me please what I need to put on <artifact> </artifact>? Thank you! – Konstantin V May 3 '18 at 12:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.