Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pact-jvm-provider-maven] mvn pact:verify command cannot detect pact files(No pact files were found for provider 'wProvider') #885

Closed
vasile21 opened this issue May 29, 2019 · 2 comments
Labels
bug Indicates an unexpected problem or unintended behavior

Comments

@vasile21
Copy link

vasile21 commented May 29, 2019

I am using pact 3.6.7 and mvn pact:verify detects no pact files in , even tho I can run the test from Intellij without error.

Pom.xml set up:
<plugin> <configuration> <groupId>au.com.dius</groupId> <artifactId>pact-jvm-provider-maven_2.12</artifactId> <version>3.6.7</version> <configuration> <serviceProviders> <serviceProvider> <name>wProvider</name> <protocol>http</protocol> <host>http://localhost</host> <port>80</port> <insecure>true</insecure> <pactFileDirectory>/home/username/workspace/pactjava/projectName/pacts/</pactFileDirectory> </serviceProvider> </serviceProviders> </configuration> </plugin>

Console output:

Loading pact files for provider wProvider from /home/username/workspace/pactjava/projectName/pacts/
Found 0 pact files
.......
[ERROR] Failed to execute goal au.com.dius:pact-jvm-provider-maven_2.12:3.6.7:verify (default-cli) on project producer: No pact files were found for provider 'wProvider' -> [Help 1]

Pact file location: /home/username/workspace/pactjava/projectName/pacts/tConsumer-wProvider

"provider": {
"name": "wProvider"
},
"consumer": {
"name": "tConsumer"
},
......
"metadata": {
"pactSpecification": {
"version": "3.0.0"
},
"pact-jvm": {
"version": "3.6.7"
}
}

I someone experiencing this issue (mvn pact:verify not detecting the pact files for provider, but being able to run tests from IDE)?

Thanks :)

@uglyog uglyog added the bug Indicates an unexpected problem or unintended behavior label Jun 2, 2019
@vasile21
Copy link
Author

vasile21 commented Jun 3, 2019

Thanks :)

@uglyog
Copy link
Member

uglyog commented Jun 15, 2019

Version 3.6.8 has been released with this fix

@uglyog uglyog closed this as completed Jul 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants