I can do this using the following pom entry:
<plugin>
<groupId>au.com.dius.pact.provider</groupId>
<artifactId>maven</artifactId>
<version>4.1.17</version>
<configuration>
<pactBrokerUrl>https://akbank.pactflow.io</pactBrokerUrl>
<pactBrokerToken>MyToken</pactBrokerToken>
</configuration>
</plugin>
However, I don't remember where I found this sample and not sure if this is the correct way because the groupid of the maven plugin ends with .provider
.
The documentation is very limited regarding this topic.
Am I doing this correctly?
It is in Pact Maven + Springboot + JUnit5 workshop, under Step 11 - Using a Pact Broker title.
<build>
<plugins>
...
<plugin>
<groupId>au.com.dius.pact.provider</groupId>
<artifactId>maven</artifactId>
<version>4.1.17</version>
<configuration>
<pactBrokerUrl>http://localhost:9292</pactBrokerUrl>
<pactBrokerUsername>pact_workshop</pactBrokerUsername>
<pactBrokerPassword>pact_workshop</pactBrokerPassword>
</configuration>
</plugin>
</plugins>
</build>