From 197864e4e018af8970ed1fe363c7ae4d561bf152 Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Wed, 7 Aug 2019 22:06:21 +0200 Subject: [PATCH] Added info about the run maven goal; fixes gh-340 --- docs/src/main/asciidoc/maven-project.adoc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/src/main/asciidoc/maven-project.adoc b/docs/src/main/asciidoc/maven-project.adoc index dce7ec1c6e..57b98155cf 100644 --- a/docs/src/main/asciidoc/maven-project.adoc +++ b/docs/src/main/asciidoc/maven-project.adoc @@ -146,6 +146,14 @@ The `generateTests` plugin goal is assigned to be invoked in the phase called `generate-test-sources`. If you want it to be part of your build process, you need not do anything. If you want only to generate tests, invoke the `generateTests` goal. +If you want to run stubs via Maven it's enough to call the `run` goal with the stubs to run as the `spring.cloud.contract.verifier.stubs` system property as follows: + +[source,bash,indent=0] +==== +mvn org.springframework.cloud:spring-cloud-contract-maven-plugin:run \ +-Dspring.cloud.contract.verifier.stubs="com.acme:service-name" +==== + [[maven-configure-plugin]] == Configure plugin