Hi team! I wrote a wiremock extension in a maven ...
# wiremock-java
w
Hi team! I wrote a wiremock extension in a maven module (lets name it
my-custom-extension
), it has tests using wiremock standalone and it works fine there. But when I try to use it in another module (lets name it
my-project-tests
) I have some classpath issues. In particular this exception when one of the request matchers in the extension is called (it makes use of the mentioned method):
Copy code
org.eclipse.jetty.ee10.servlet.ServletChannel Method: handleException Line: 661  /v1/setup_intents  java.lang.NoSuchMethodError: 'wiremock.com.fasterxml.jackson.databind.JsonNode com.github.tomakehurst.wiremock.common.Json.node(java.lang.String)'
The module
my-extension
depends on
wiremock-standalone:3.10.0
and
my-project-tests
depends on
org.wiremock.integrations:wiremock-spring-boot:3.3.0
and, of course on
my-extension
What could be wrong with my setup? Is it ok for my extension classes to use methods from
com.github.tomakehurst.wiremock.common.Json
?