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.5.0-jre7.1 pact-jvm-provider-maven_2.11 2017-06-24 13:18:34 UTC
3.2.11 pact-jvm-provider-maven_2.11 2016-07-31 06:31:55 UTC
3.2.12 pact-jvm-provider-maven_2.11 2016-08-07 04:41:27 UTC
3.2.13 pact-jvm-provider-maven_2.11 2016-08-14 01:55:09 UTC
2.4.4 pact-jvm-provider-maven_2.11 2016-01-20 23:51:58 UTC
2.4.3 pact-jvm-provider-maven_2.11 2016-01-17 03:03:08 UTC
3.5.2-jre7.0 pact-jvm-provider-maven_2.11 2017-07-12 00:39:17 UTC
2.4.6 pact-jvm-provider-maven_2.11 2016-02-19 23:34:16 UTC
2.4.5 pact-jvm-provider-maven_2.11 2016-02-11 04:43:43 UTC
2.4.8 pact-jvm-provider-maven_2.11 2016-03-29 02:27:21 UTC
2.4.7 pact-jvm-provider-maven_2.11 2016-03-25 00:51:53 UTC
2.4.9 pact-jvm-provider-maven_2.11 2016-05-04 02:47:15 UTC
3.2.10 pact-jvm-provider-maven_2.11 2016-07-15 04:17:45 UTC
2.4.0 pact-jvm-provider-maven_2.11 2015-11-22 04:12:44 UTC
2.4.2 pact-jvm-provider-maven_2.11 2015-12-12 22:13:04 UTC
2.4.1 pact-jvm-provider-maven_2.11 2015-11-28 06:41:02 UTC
3.3.2 pact-jvm-provider-maven_2.11 2016-10-22 09:00:47 UTC
3.3.1 pact-jvm-provider-maven_2.11 2016-10-02 03:52:12 UTC
3.3.0 pact-jvm-provider-maven_2.11 2016-09-07 10:53:54 UTC
2.2.13 pact-jvm-provider-maven_2.11 2015-08-29 05:25:44 UTC
2.2.12 pact-jvm-provider-maven_2.11 2015-08-09 07:19:37 UTC
2.2.11 pact-jvm-provider-maven_2.11 2015-08-02 04:50:11 UTC
3.5.0 pact-jvm-provider-maven_2.11 2017-06-24 08:13:29 UTC
2.2.10 pact-jvm-provider-maven_2.11 2015-07-25 06:13:39 UTC
3.3.9 pact-jvm-provider-maven_2.11 2017-05-08 11:36:56 UTC
3.3.8 pact-jvm-provider-maven_2.11 2017-04-14 03:57:30 UTC
3.3.7 pact-jvm-provider-maven_2.11 2017-03-27 04:38:33 UTC
3.3.6 pact-jvm-provider-maven_2.11 2017-01-26 06:42:13 UTC
3.5.2 pact-jvm-provider-maven_2.11 2017-07-12 01:13:30 UTC
3.3.5 pact-jvm-provider-maven_2.11 2017-01-14 06:53:14 UTC