unable to upload pact using pactbroker-maven-plugin

430 views
Skip to first unread message

Rashmi P

unread,
Sep 26, 2016, 4:35:40 AM9/26/16
to Pact
Hi!
   
     I have a running instance pact broker and I am trying to upload pact files using the pactbroker-maven-plugin. Can anyone help me fix this issue?

These are the errors that I am getting on running 'mvn install':

[INFO] 

[INFO] --- pactbroker-maven-plugin:0.0.9:upload-pacts (upload-pacts) @ micro-service-1 ---

[INFO] loading pacts from /Users/rashmi.patil/workspace/prod-engg/test-pact/pact/pact-junit-java/micro-service-1/target/pacts

[INFO] found pact file: Service1-Service2.json

[INFO] found pact file: Service1-Service3.json

[INFO] found pact file: Service1.6-Service2.6.json

[INFO] found pact file: test_consumer_array-test_provider_array.json

[INFO] Uploading pact to http://localhost:8080/pacts/provider/Service2/consumer/Service1/version/1.0.0

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 12.814 s

[INFO] Finished at: 2016-09-26T13:58:40+05:30

[INFO] Final Memory: 21M/292M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal com.github.warmuuh:pactbroker-maven-plugin:0.0.9:upload-pacts (upload-pacts) on project micro-service-1: Failed to read pacts: Connection refused -> [Help 1]




Here are the contents of  my pom.xml

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>com.github.warmuuh</groupId>
<artifactId>pactbroker-maven-plugin</artifactId>
<version>0.0.9</version>
<executions>
<execution>
<id>upload-pacts</id>
<phase>test</phase>
<goals><goal>upload-pacts</goal></goals>
<configuration>
<brokerUrl>http://localhost:8080</brokerUrl>
<pacts>/Users/rashmi.patil/workspace/prod-engg/test-pact/pact/pact-junit-java/micro-service-1/target/pacts</pacts>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>



Ronald Holshausen

unread,
Sep 26, 2016, 4:48:54 AM9/26/16
to Rashmi P, Pact

If you access http://localhost:8080/ in your browser, what do you get?


--
You received this message because you are subscribed to the Google Groups "Pact" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pact-support...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Ronald Holshausen

DiUS Computing Pty Ltd

Level 10, 99 Queens Street
Melbourne, VIC 3000

Phone: +61 3 9008 5400
Mobile: +61 413 162 439

http://www.diuscomputing.com.au

Rashmi P

unread,
Sep 26, 2016, 7:20:55 AM9/26/16
to Pact
It displays the list of pacts. Currently I have only Zoo App and Animal Service as participants (From the example at pact-broker). Although if I make a put request manually, then I am able to upload pacts but not using the pact broker maven plugin

Ronald Holshausen

unread,
Sep 27, 2016, 5:58:54 AM9/27/16
to Rashmi P, Pact
Could you raise an issue with the github project for that plugin? You configuration looks correct. 


--
You received this message because you are subscribed to the Google Groups "Pact" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pact-support...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rashmi P

unread,
Sep 27, 2016, 11:15:54 AM9/27/16
to Ronald Holshausen, Pact
I have raised the issue. Please let me know if I need to add more details..

Thanks,
Rashmi Patil

To unsubscribe from this group and stop receiving emails from it, send an email to pact-support+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages