Can't set pact.verifier.publishResults to true with Maven
See original GitHub issueHello,
since an update I get the following warning:
[main] WARN au.com.dius.pact.provider.junit.InteractionRunner - Skipping publishing of verification results (pact.verifier.publishResults is not set to 'true')
As I found this #publishing-verification-results-to-a-pact-broker-version-354 I tried to set the property in the pom.xml in property-section, via the properties-maven-plugin and via command line (Dpact.verifier.publishResults=true), but nothing of that worked for me. I could not figure out how to set it to true.
Any ideas?
Edit: This may be a duplicate of: https://github.com/DiUS/pact-jvm/issues/538
As I use Annotations (@PactUrl) and there is no Annotation like PactBrokerUrl there may be another chance? I need an url like: "http://" + Constants.PACTBROKERHOST + ":" + Constants.PACTBROKERPORT + "/pacts/provider/" + PROVIDER + "/consumer/" + CONSUMER+ "/version/" + PACTVERSION
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (6 by maintainers)
Top GitHub Comments
I think I erred because of my general jvm unfamiliarity. Rather than setting the property through maven (which I do now), I initially set pact.verifier.publishResults to the boolean true programatically. So
would not register as ‘true’, but this would:
This is probably just my own fault.
@Dattasaisukumar just check https://maven.apache.org/surefire/maven-surefire-plugin/examples/system-properties.html,
systemProperties
is deprecated and you should usesystemPropertyVariables
which has a different form.