Skip to content

Commit 8197643

Browse files
committed
Add maven plugin for using WireMock.
See: - http://wiremock.org/docs/ - https://github.com/automatictester/wiremock-maven-plugin No functional changes.
1 parent 27d9f52 commit 8197643

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

pom.xml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,7 @@
583583

584584
<togglz.version>2.5.0.Final</togglz.version>
585585
<war.plugin.version>3.2.0</war.plugin.version>
586+
<wiremock.plugin.version>2.13.0</wiremock.plugin.version>
586587
</properties>
587588

588589
<build>
@@ -1046,6 +1047,36 @@
10461047
</executions>
10471048
</plugin>
10481049

1050+
<!--
1051+
Usage:
1052+
mvn wiremock:run (run WireMock server with mocks from src/test/wiremock/mappings)
1053+
-->
1054+
<plugin>
1055+
<groupId>uk.co.automatictester</groupId>
1056+
<artifactId>wiremock-maven-plugin</artifactId>
1057+
<version>${wiremock.plugin.version}</version>
1058+
<configuration>
1059+
<!-- Handy for manual debugging -->
1060+
<!--
1061+
<keepRunning>true</keepRunning>
1062+
-->
1063+
<dir>${basedir}/src/test/wiremock</dir>
1064+
<!--
1065+
The list of available options:
1066+
http://wiremock.org/docs/running-standalone/
1067+
-->
1068+
<!-- Handy for debugging: add &#45;&#45;verbose option -->
1069+
<params>--port=8888 --disable-banner --no-request-journal</params>
1070+
</configuration>
1071+
<executions>
1072+
<execution>
1073+
<goals>
1074+
<goal>run</goal>
1075+
</goals>
1076+
</execution>
1077+
</executions>
1078+
</plugin>
1079+
10491080
</plugins>
10501081

10511082
</build>

0 commit comments

Comments
 (0)