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!

2 Answers 2

2

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:

2
  • 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! May 3, 2018 at 14:34
  • Hi Dmitri, any suggestion plz? May 4, 2018 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

7
  • 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? May 3, 2018 at 11:13
  • Refer the link for adding the JAR files in /lib/ext folder github.com/jmeter-maven-plugin/jmeter-maven-plugin/wiki/… May 3, 2018 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? May 3, 2018 at 11:58
  • yes. this will work May 3, 2018 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! May 3, 2018 at 12:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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