ipastusi / wiremock-maven-plugin Goto Github PK
View Code? Open in Web Editor NEWWireMock Maven Plugin
License: MIT License
WireMock Maven Plugin
License: MIT License
version 4.4.1+ with Xalan dependency included (#41) cause maven-bundle-plugin failure [1]
Mac 10.14.4 / Jdk 1.8.0_192 / Maven 3.6.0
POM parent is spring-boot 1.5.17.RELEASE
Plugin: 4.4.0
Added plugin as per README
Project uses Saxon: 9.1.0.8
Plugin execution failing ; see attached stacktrace
junits use XPaths and {cargo-maven2-plugin, soapui-maven-plugin} plugins run, so pom looks OK.
Version 5.0.0 of your excellent plugin (thanks for all your work) promises to be decoupled from the WireMock version itself. However, the plugin's POM still contains a dependencyManagement section that overrides some of WireMock's own dependencies (e.g. the asm 7.0 dependency from WireMock 2.25.1 is overwritten with version 5.2 in release 5.0.0 of the plugin).
Is there any particular reason why the plugin manages some of WireMock's transitive dependencies?
Plugin produces a lot of output to the console with names of artifacts that are included in the classpath:
$ mvn wiremock:run
[INFO] --- wiremock-maven-plugin:2.13.0:run (default-cli) @ mystamps ---
[INFO] Adding /Users/coder/git/mystamps.git/target/test-classes to wiremock-maven-plugin classpath
[INFO] Adding /Users/coder/git/mystamps.git/target/classes to wiremock-maven-plugin classpath
[INFO] Adding /Users/coder/.m2/repository/com/github/heneke/thymeleaf/thymeleaf-extras-togglz/2.0.1.RELEASE/thymeleaf-extras-togglz-2.0.1.RELEASE.jar to wiremock-maven-plugin classpath
[INFO] Adding /Users/coder/.m2/repository/org/thymeleaf/thymeleaf/3.0.9.RELEASE/thymeleaf-3.0.9.RELEASE.jar to wiremock-maven-plugin classpath
[INFO] Adding /Users/coder/.m2/repository/ognl/ognl/3.1.12/ognl-3.1.12.jar to wiremock-maven-plugin classpath
...
$ mvn wiremock:run | grep -c 'Adding .* to wiremock-maven-plugin classpath'
72
Does it really useful information? Could it be suppressed at all? Otherwise, could you introduce an option for that?
Thanks!
Improve both Jenkinsfiles:
Verify if migration to Jenkins Declarative Pipeline didn't break git push. The likes are it did.
Hi, I don't see a way of setting up the plugin to be skipped. If the plugin is part of the integration test phase, it would be nice if it also respected the failsafe skipITs property or perhaps allowed a way for it to be configured. Thanks.
Migrate plugin to Groovy
Due to recent project migration to Scala, plugin no longer works for pre-3.5.4 Maven versions:
The plugin net.alchim31.maven:scala-maven-plugin:3.4.2 requires Maven version 3.5.4
This is causing obvious problems for those who need to use older Maven version, for any reason.
A project with a path containing a space causes WireMock to load with an incorrect root directory.
This may happen for a project without spaces in the path but with
parameter with a space though (not verified).When following the instructions and running mvn verify
the wiremock instance if started properly with the params specified in the pom.xml. But when running just: mvn wiremock:run
it seems to start a wiremock instance on port 8080, which I assume is the default one, so it seems it is ignoring the params in the pom.xml. How do I start a wiremock instance which is configured in my pom.xml:
<plugin>
<groupId>uk.co.deliverymind</groupId>
<artifactId>wiremock-maven-plugin</artifactId>
<version>2.3.0</version>
<executions>
<execution>
<goals>
<goal>run</goal>
</goals>
<configuration>
<dir>target/classes</dir>
<params>--port=9923 --verbose --local-response-templating</params>
</configuration>
</execution>
</executions>
</plugin>
Suppose I have two modules in my build structure. Both modules want to start up a wiremock instance. This doesn't presently work. It looks like the plugin assumes that the termination of maven will cause termination of the running instance. However when you have a multi module, you may want to have distinct wiremocks running (may or may not share port, in my case they're sharing port). It seems a little ugly to require the second server to run on a different port, and they both end up running for the test duration as a result.
Would be good if instead the plugin could shutdown the created server in a post step.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.