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.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
2.4.7 pact-jvm-provider-maven_2.11 2016-03-25 00:51:53 UTC
3.2.4 pact-jvm-provider-maven_2.11 2016-02-20 00:46:57 UTC
2.4.6 pact-jvm-provider-maven_2.11 2016-02-19 23:34:16 UTC
3.2.3 pact-jvm-provider-maven_2.11 2016-02-11 06:22:14 UTC
2.4.5 pact-jvm-provider-maven_2.11 2016-02-11 04:43:43 UTC
2.4.4 pact-jvm-provider-maven_2.11 2016-01-20 23:51:58 UTC
3.2.2 pact-jvm-provider-maven_2.11 2016-01-17 03:30:23 UTC
2.4.3 pact-jvm-provider-maven_2.11 2016-01-17 03:03:08 UTC
3.2.1 pact-jvm-provider-maven_2.11 2015-12-12 22:36:31 UTC
2.4.2 pact-jvm-provider-maven_2.11 2015-12-12 22:13:04 UTC
3.2.0 pact-jvm-provider-maven_2.11 2015-11-28 20:57:13 UTC
2.4.1 pact-jvm-provider-maven_2.11 2015-11-28 06:41:02 UTC
2.4.0 pact-jvm-provider-maven_2.11 2015-11-22 04:12:44 UTC
3.1.3 pact-jvm-provider-maven_2.11 2015-11-14 07:30:21 UTC
2.3.3 pact-jvm-provider-maven_2.11 2015-11-14 06:42:43 UTC
2.3.2 pact-jvm-provider-maven_2.11 2015-10-24 01:19:19 UTC
3.1.2 pact-jvm-provider-maven_2.11 2015-10-24 00:41:58 UTC
2.3.1 pact-jvm-provider-maven_2.11 2015-10-20 09:05:31 UTC
3.1.1 pact-jvm-provider-maven_2.11 2015-10-20 08:18:29 UTC
2.3.0 pact-jvm-provider-maven_2.11 2015-10-06 10:25:12 UTC
3.1.0 pact-jvm-provider-maven_2.11 2015-10-06 09:24:51 UTC
2.2.15 pact-jvm-provider-maven_2.11 2015-09-17 10:11:52 UTC
3.0.4 pact-jvm-provider-maven_2.11 2015-09-17 09:30:14 UTC
2.2.14 pact-jvm-provider-maven_2.11 2015-09-07 10:12:50 UTC
3.0.3 pact-jvm-provider-maven_2.11 2015-09-07 09:34:32 UTC
2.2.13 pact-jvm-provider-maven_2.11 2015-08-29 05:25:44 UTC
3.0.2 pact-jvm-provider-maven_2.11 2015-08-29 03:55:52 UTC