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

No file is saved when downloading pacts #17

Open
EstherAF opened this issue Apr 28, 2017 · 0 comments
Open

No file is saved when downloading pacts #17

EstherAF opened this issue Apr 28, 2017 · 0 comments

Comments

@EstherAF
Copy link

I have the pluging configured like following:

        <plugin>
            <groupId>com.github.warmuuh</groupId>
            <artifactId>pactbroker-maven-plugin</artifactId>
            <version>0.0.10</version>
            <configuration>
                <brokerUrl>http://localhost:80</brokerUrl>
                <tagName>latest</tagName>
                <provider>foo</provider>
                <pacts>target/pacts-downloaded</pacts>
            </configuration>
            <executions>
                <execution>
                    <id>download-pacts</id>
                    <phase>generate-resources</phase>
                    <goals><goal>download-pacts</goal></goals>
                </execution>
            </executions>
        </plugin>

When I execute mvn pactbroker:download-pacts, everything seems to be ok (log at the end), and the folder where the pacts should be downloaded is created, but its always empty.

The log prints the download url (http://localhost:80/pacts/provider/foo/latest/latest), and I've checked it's right with my browser, it downloads a valid file.

Am I doing something wrong?

Log:

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building provider 0.0.1
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> pactbroker-maven-plugin:0.0.10:download-pacts (default-cli) > generate-test-resources @ provider >>>
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ provider ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 0 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ provider ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] <<< pactbroker-maven-plugin:0.0.10:download-pacts (default-cli) < generate-test-resources @ provider <<<
[INFO] 
[INFO] --- pactbroker-maven-plugin:0.0.10:download-pacts (default-cli) @ provider ---
[INFO] Downloading pact links from http://localhost:80/pacts/provider/foo/latest/latest
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.549 s
[INFO] Finished at: 2017-04-28T13:48:19+02:00
[INFO] Final Memory: 25M/395M
[INFO] ------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant