Maven2 + JMeter + JUnit with dependencies

I would like to run JUnit tests in JMeter. Using the maven-jar-plugin, I can create a jar with my tests to put it in the JMeter class path ($ JMETER_HOME / lib / junit). The problem is that my tests have many dependencies that Maven2 does not put in the bank, including the main classes of the project, classes from other projects and external libraries. How can i do this?

+3
source share
2 answers

You can use the fatjar plugin .

0
source

iwein, maven-fatjar-plugin, JAR JAR MANIFEST, .

, maven-shade-plugin, ".class" JARs dependecy JAR. UBER-JAR. , :

  • JAR
  • , MANIFEST ( Classpath), .
  • UBER-JAR , ;)
0
source

Source: https://habr.com/ru/post/1753308/


All Articles