0%

Building a Stub Server using WireMock and Spring Boot

csongyu/stub-server

Solve the "No response could be served as there are no stub mappings in this WireMock instance." problem.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>addWiremockFilesOnRootLevel</id>
<phase>package</phase>
<configuration>
<target>
<zip destfile="${project.build.directory}/${project.name}-${project.version}.jar"
update="yes" compress="false">
<zipfileset dir="${project.build.directory}/classes/wiremock" prefix="wiremock"/>
</zip>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>