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
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
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