Versions of artifact au.com.dius:pact-jvm-provider-maven_2.11

pact-jvm-provider-maven_2.11

Maven plugin to verify a provider [version 2.1.9+] ================================================== Maven plugin for verifying pacts against a provider. The Maven plugin provides a `verify` goal which will verify all configured pacts against your provider. ## To Use It ### 1. Add the pact-jvm-provider-maven plugin to your `build` section of your pom file. ```xml <build> [...] <plugins> [...] <plugin> <groupId>au.com.dius</groupId> <artifactId>pact-jvm-provider-maven_2.11</artifactId> <version>3.3.8</version> </plugin> [...] </plugins> [...] </build> ``` ### 2. Define the pacts between your consumers and providers You define all the providers and consumers within the configuration element of the maven plugin. ```xml <plugin> <groupId>au.com.dius</groupId> <artifactId>pact-jvm-provider-maven_2.11</artifactId> <version>3.3.8</version> <configuration> <serviceProviders> <!-- You can define as many as you need, but each must have a unique name --> <serviceProvider> <name>provider1</name> <!-- All the provider properties are optional, and have sensible defaults (shown below) --> <protocol>http</protocol> <host>localhost</host> <port>8080</port> <path>/</path> <consumers> <!-- Again, you can define as many consumers for each provider as you need, but each must have a unique name --> <consumer> <name>consumer1</name> <!-- currently supports a file path using pactFile or a URL using pactUrl --> <pactFile>path/to/provider1-consumer1-pact.json</pactFile> </consumer> </consumers> </serviceProvider> </serviceProviders> </configuration> </plugin> ``` ### 3. Execute `mvn pact:verify` You will have to have your provider running for this to pass. ## Verifying all pact files in a directory for a provider. [2.1.10+] You can specify a directory that contains pact files, and the Pact plugin will scan for all pact files that match that provider and define a consumer for each pact file in the directory. Consumer name is read from contents of pact file. ```xml <plugin> <groupId>au.com.dius</groupId> <artifactId>pact-jvm-provider-maven_2.11</artifactId> <version>3.3.8</version> <configuration> <serviceProviders> <!-- You can define as many as you need, but each must have a unique name --> <serviceProvider> <name>provider1</name> <!-- All the provider properties are optional, and have sensible defaults (shown below) --> <protocol>http</protocol> <host>localhost</host> <port>8080</port> <path>/</path> <pactFileDirectory>path/to/pacts</pactFileDirectory> </serviceProvider> </serviceProviders> </configuration> </plugin> ``` ## Enabling insecure SSL [version 2.2.8+] For providers that are running on SSL with self-signed certificates, you need to enable insecure SSL mode by setting `<insecure>true</insecure>` on the provider. ```xml <plugin> <groupId>au.com.dius</groupId> <artifactId>pact-jvm-provider-maven_2.11</artifactId> <version>3.3.8</version> <configuration> <serviceProviders> <serviceProvider> <name>provider1</name> <pactFileDirectory>path/to/pacts

Artifact Version Name Latest uploaded at
3.3.5 pact-jvm-provider-maven_2.11 2017-01-14 06:53:14 UTC
3.3.4 pact-jvm-provider-maven_2.11 2017-01-04 05:07:06 UTC
2.4.18 pact-jvm-provider-maven_2.11 2016-12-30 01:50:36 UTC
3.3.3 pact-jvm-provider-maven_2.11 2016-11-06 03:49:34 UTC
2.5.0-beta.0 pact-jvm-provider-maven_2.11 2016-10-22 12:58:00 UTC
3.3.2 pact-jvm-provider-maven_2.11 2016-10-22 09:00:47 UTC
2.4.17 pact-jvm-provider-maven_2.11 2016-10-22 07:04:26 UTC
3.3.1 pact-jvm-provider-maven_2.11 2016-10-02 03:52:12 UTC
2.4.16 pact-jvm-provider-maven_2.11 2016-10-01 21:40:11 UTC
3.5.0-beta.2 pact-jvm-provider-maven_2.11 2016-09-21 12:41:00 UTC
3.3.0 pact-jvm-provider-maven_2.11 2016-09-07 10:53:54 UTC
3.5.0-beta.1 pact-jvm-provider-maven_2.11 2016-08-28 11:20:46 UTC
2.4.15 pact-jvm-provider-maven_2.11 2016-08-23 12:58:39 UTC
3.2.13 pact-jvm-provider-maven_2.11 2016-08-14 01:55:09 UTC
3.2.12 pact-jvm-provider-maven_2.11 2016-08-07 04:41:27 UTC
2.4.14 pact-jvm-provider-maven_2.11 2016-08-07 03:44:33 UTC
3.3.0-beta.0 pact-jvm-provider-maven_2.11 2016-07-31 09:06:05 UTC
3.2.11 pact-jvm-provider-maven_2.11 2016-07-31 06:31:55 UTC
2.4.13 pact-jvm-provider-maven_2.11 2016-07-31 05:13:57 UTC
3.2.10 pact-jvm-provider-maven_2.11 2016-07-15 04:17:45 UTC
2.4.12 pact-jvm-provider-maven_2.11 2016-07-15 03:04:31 UTC
3.2.9 pact-jvm-provider-maven_2.11 2016-07-06 05:39:13 UTC
2.4.11 pact-jvm-provider-maven_2.11 2016-07-06 05:17:48 UTC
3.2.8 pact-jvm-provider-maven_2.11 2016-06-18 04:29:25 UTC
2.4.10 pact-jvm-provider-maven_2.11 2016-06-17 23:23:39 UTC
3.2.7 pact-jvm-provider-maven_2.11 2016-05-04 05:01:22 UTC
2.4.9 pact-jvm-provider-maven_2.11 2016-05-04 02:47:15 UTC
3.2.6 pact-jvm-provider-maven_2.11 2016-03-29 03:22:49 UTC
2.4.8 pact-jvm-provider-maven_2.11 2016-03-29 02:27:21 UTC
3.2.5 pact-jvm-provider-maven_2.11 2016-03-25 01:59:29 UTC