So, I'm trying to wrap my head around branches, es...
# pact-jvm
b
So, I'm trying to wrap my head around branches, especially on the provider side. I used to verify my contracts using
mvn
, and because my provider is a Spring service, this works fine:
mvn clean "-Dpact.verifier.publishResults=true" "-Dpact.provider.version=1.0.0-address-ee07f8c04721b90be743fc1c08946663f01e6e46" test
However, I now also want to list the provider branch, but when I try this (following the docs):
mvn clean "-Dpact.verifier.publishResults=true" "-Dpact.provider.version=1.0.0-address-ee07f8c04721b90be743fc1c08946663f01e6e46" "-Dpactbroker.providerBranch=main" test
It does not record the provider branch. Any ideas? Is this even important? I know I will need it in the next step, when I'll introduce pending pacts...
Hah! I love Slack as a rubber duck...
mvn clean "-Dpact.verifier.publishResults=true" "-Dpact.provider.version=1.0.0-address-ee07f8c04721b90be743fc1c08946663f01e6e46" "-Dpact.provider.branch=main" test
seems to do the trick.. But that's guesswork, not because I found it in the docs...
r
Where were you expecting docs for that to be? In the readme for the Maven plugin? Or on docs.pact.io?
b
Hey Ron, I don’t know what I was doing and what page I was looking at exactly (not at the laptop right now) but I can see it here: https://docs.pact.io/implementation_guides/jvm/docs/system-properties I stand corrected.