Hi All, I am upgrading wiremock version from 2.23....
# help
s
Hi All, I am upgrading wiremock version from 2.23.2 to 3.0.0 as my jenkins deployment is getting blocked due wiremock older version vulnerabilities. After upgrade to latest 3.0.0 version getting error as main method is not recognized in WireMockServerRunner class Can I get link to latest maven Wiremock repository? We were using http://github.com/massamany/WireMockCsv, it has not updated since 7 years
l
All the maven and gradle information can be found on the docs site here - https://wiremock.org/docs/download-and-installation/
I can't really speak to the CSV extension you are using as I have never used it before. Something you might like to take a look at is the WireMock Cloud data sources functionality. It allows you to upload a csv file of data and match stubs and generate responses based on that data.
s
After using below dependency getting error as "The method main(String[]) is undefined for the type WireMockServerRunner" dependency groupIdorg.wiremock/groupId artifactIdwiremock/artifactId version3.7.0/version scopecompile/scope /dependency dependency groupIdorg.wiremock/groupId artifactIdwiremock-standalone/artifactId version3.7.0/version scopecompile/scope /dependency
older version of wiremockserverrunner.class file has main method
l
Yes, the main method is now here - https://github.com/wiremock/wiremock/blob/166c3b3586c57aece86a1b5744a1cb2d19c6f690/src/main/java/wiremock/Run.java#L22 Are you starting WireMock standalone programatically?