jaxrs-analyzer-maven-plugin
jaxrs-analyzer-maven-plugin copied to clipboard
swaggerSchemes https is not considered
Hi there,
I am facing a problem changing the swaggerSchemes
to https
.
This is my configuration (yes I am currently using 0.9 due to #39):
<plugin>
<groupId>com.sebastian-daschner</groupId>
<artifactId>jaxrs-analyzer-maven-plugin</artifactId>
<version>0.9</version>
<executions>
<execution>
<goals>
<goal>analyze-jaxrs</goal>
</goals>
<configuration>
<backend>swagger</backend>
<deployedDomain>example/rest/extranet/latest</deployedDomain>
<swaggerSchemes>https</swaggerSchemes>
</configuration>
</execution>
</executions>
</plugin>
The plugin produces the following json
...
"basePath": "/",
"schemes": [
"http"
],
"paths": {
....
Running the same configuration with versions > v9 even produces an error.
[ERROR] Failed to execute goal com.sebastian-daschner:jaxrs-analyzer-maven-plugin:0.14:analyze-jaxrs (default) on project core: Unable to parse configuration of mojo com.sebastian-daschner:jaxrs-analyzer-maven-plugin:0.14:analyze-jaxrs for parameter swaggerSchemes: Cannot assign configuration entry 'swaggerSchemes' with value 'https' of type java.lang.String to property of type java.lang.String[] -> [Help 1]
My workaround is to change the protocol manually after creation (which is annoying) Am I doing something wrong? Thanks for any help!
Yes, please check with the newly pushed 0.17-SNAPSHOT
version. You need to add Maven's staging repositories for that.