Project jmeter portable after to have build with maven

44 Views Asked by At

I'm building a project jmeter with maven. In general I pass some argument in input.

Typically I build and run with an example command as the following:

mvn clean verify "-DNrOperators=3" -DProject.jmx=Myproject.jmx -Dtarget=Test

It produces some folders in target : logs, results, testFiles and I see the results in those folders.

Now I would like to make the project portable. That is, once the project has been built by maven on an host A , I would execute the project on another host B, without any rebuild activity, but only executing the built project

How can I do it?

Thanks

1

There are 1 best solutions below

2
Dmitri T On

The steps you need to do are:

  1. Make sure that Java is installed on the host B
  2. Make sure that Maven is installed on the host B (unless you're using the Maven Wrapper)
  3. Copy the local repository folder from the host A to the host B, normally it's .m2 folder in your user home folder
  4. Copy your project from host A to host B
  5. Run mvn clean verify

More information: How to Use the JMeter Maven Plugin