mvn org.springframework.cloud.contract:spring-cloud-contract-verifier-maven-plugin:convert
mvn org.springframework.cloud.contract:spring-cloud-contract-verifier-maven-plugin:convert
or shortly [1]
mvn spring-cloud-contract-verifier:convert
For more information please go to the Accurest Wiki or Plugin Documentation Site.
Run stubs mappings from current directory:
mvn org.springframework.cloud.contract:spring-cloud-contract-verifier-maven-plugin:run
or shortly [1]
mvn spring-cloud-contract-verifier:run
mvn spring-cloud-contract-verifier:run -Dstubs="org.springframework:gs-rest-service"
where org.springframework:gs-rest-service
is artifact with stubs classifier contains wiremock mappings.
<plugin>
<groupId>org.springframework.cloud.contract</groupId>
<artifactId>spring-cloud-contract-verifier-maven-plugin</artifactId>
<version>${accurest-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>convert</goal>
<goal>generateStubs</goal>
<goal>generateTests</goal>
</goals>
</execution>
</executions>
<configuration>
<baseClassForTests>hello.BaseAccurest</baseClassForTests>
</configuration>
</plugin>
~/.m2/settings.xml
is required: <pluginGroups><pluginGroup>io.codearte.accurest</pluginGroup></pluginGroups>
.