Closed tn185070 closed 3 years ago
Add this to your plugin configuration:
<configuration>
<apiDocsUrl>http://localhost:54826/v3/api-docs</apiDocsUrl>
</configuration>
If you changed the context of your WebMVC you would have to add that to the URL too.
@bnasslahsen I understand what caused my failure, I was suggesting that this plugin should offer an option to fail the maven build if it can't retrieve the api doc.
@tn185070,
Please feel free to propose a PR.
@tn185070 How did you managed to pass the random port such as ${local.server.port} to the plugin configuration ?
@tn185070 How did you managed to pass the random port such as ${local.server.port} to the plugin configuration ?
I think it was following something like https://docs.spring.io/spring-boot/docs/current/maven-plugin/reference/htmlsingle/#integration-tests.examples.random-port
When I added this plugin to my pom I forgot to configure the url so that it would know about the random port the service is starting up on. I expect that this would've caused the build to fail, but I only noticed because I manually looked for the open api file and noticed it was missing.
It would be nice if the plugin would cause the build to fail on connection errors because we are planning on using the output file in our pipeline.
This is a snippet of my log:
The plugin version is 1.1