From 1352283a62c3f83b1f0185f7c5480c31a08d6397 Mon Sep 17 00:00:00 2001 From: Olga Maciaszek-Sharma Date: Fri, 28 Sep 2018 10:55:34 -0400 Subject: [PATCH] Add info about the flow with contracts with producer and stubs in other repo. --- docs/src/main/asciidoc/verifier_faq.adoc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/src/main/asciidoc/verifier_faq.adoc b/docs/src/main/asciidoc/verifier_faq.adoc index ac77fc1309..10a5ccc3ae 100644 --- a/docs/src/main/asciidoc/verifier_faq.adoc +++ b/docs/src/main/asciidoc/verifier_faq.adoc @@ -681,6 +681,15 @@ to find contracts. E.g. for `com.example:foo:1.0.0` the path would be * Once the tests pass, the stubs will be committed in the cloned repository * Finally, a push will be done to that repo's `origin` +===== Keeping contracts with the producer and stubs in an external repository + +It is also possible to keep the contracts in the producer repository, but keep the stubs in an external git repo. +This is most useful when you want to use the base consumer-producer collaboration flow, but do not have a possibility to +use an artifact repository for storing the stubs. + +In order to do that, use the usual producer setup, and then add the `pushStubsToScm` goal and set +`contractsRepositoryUrl` to the repository where you want to keep the stubs. + ==== Consumer On the consumer side when passing the `repositoryRoot` parameter,