Cagin Uludamar
Cagin Uludamar

Reputation: 476

How to upload consumer contract to official Pact Broker

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?

Upvotes: 0

Views: 554

Answers (1)

Cagin Uludamar
Cagin Uludamar

Reputation: 476

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>

Upvotes: 0

Related Questions