0

I am trying to run jmx test using jmeter maven plugin. Everytime the tests starts and fails throwing the below exception. Exception: Uncaught Exception java.lang.NoClassDefFoundError: com/jayway/jsonpath/internal/JsonReader

POM:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.dap</groupId>
  <artifactId>jmeter-test</artifactId>
  <packaging>jar</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>jmeter-test</name>
  <url>http://maven.apache.org</url>

  <build>
    <plugins>
      <plugin>
        <groupId>com.lazerycode.jmeter</groupId>
        <artifactId>jmeter-maven-plugin</artifactId>
        <version>2.7.0</version>
        <executions>
          <execution>
            <id>jmeter-tests</id>
            <goals>
              <goal>jmeter</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
       

          <jmeterExtensions>
            <artifact>kg.apc:jmeter-plugins-manager:0.19</artifact>
            <artifact>Kg.apc:jmeter-plugins-extras-libs:1.3.1</artifact>
            <artifact>kg.apc:jmeter-plugins-json:jar:2.3</artifact>
            <artifact>com.jayway.jsonpath:json-path:2.2.0</artifact>
          </jmeterExtensions>
          <excludedArtifacts>

        <exclusion>net.minidev:json-smart:1.2</exclusion>
          </excludedArtifacts>
          <downloadExtensionDependencies>false</downloadExtensionDependencies>

        </configuration>
        <dependencies>
          <dependency>
            <groupId>kg.apc</groupId>
            <artifactId>jmeter-plugins-extras-libs</artifactId>
            <version>1.3.1</version>
          </dependency>


        </dependencies>
      </plugin>
    </plugins>
  </build>
</project>
Ardesco
  • 7,281
  • 26
  • 49
Madhuri
  • 19
  • 1
  • 1
  • 4

0 Answers0