Closed yaravind closed 9 years ago
As it turns out, it was implemented in a shared component so was available in the maven plugin. I've updated the readme with an example that should help you.
We tried as suggested
When I ran mvn au.com.dius:pact-jvm-provider-maven_2.11:verify -Dhost=localhost -Dport=8080
Seeing this error [ERROR] Failed to execute goal au.com.dius:pact-jvm-provider-maven_2.11:2.2.6:ve rify (default-cli) on project peru-rio-consumer-contracts-verification: Executio n default-cli of goal au.com.dius:pact-jvm-provider-maven_2.11:2.2.6:verify fail ed: Unable to load the mojo 'verify' in the plugin 'au.com.dius:pact-jvm-provide r-maven_2.11:2.2.6'. A required class is missing: groovy/lang/GroovyObject [ERROR] -----------------------------------------------------
@iboppana Looks like your maven is not loading the transitive dependencies correctly. You may have to add a explicit dependency on Groovy:
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy</artifactId>
<version>2.4.3</version>
</dependency>
</dependencies>
Try add that to the pact plugin configuration in your pom.xml
@Freaky-namuH has added a pull request #136 that reduces the embedded groovy to:
<insecure>true</insecure>
version 2.2.8 was released with @Freaky-namuH 's changes
We are using pact-jvm-provider-maven_2.11 (version 2.2.1) to run provider tests. Provider tests are being run against a https endpoint with self signed certificate. We are seeing the below error
Request Failed - sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1917)
We need a way to provide the truststore the the client with self-signed certificate.